cumulusを-pip install django-cumulus
と一緒にインストールし、必要なものはすべてアプリ設定ファイルに追加しました。しかし、私がそうするとき、私はdjango-admin.py syncstatic
得るUnknown command: 'syncstatic'
。指摘していただけませんか。私は何を間違っているのですか。
私がフォローしたドキュメント-http://pypi.python.org/pypi/django-cumulus
私の環境の詳細:
Python 2.7.3
Django 1.4.2
django-cumulus 1.0.5
python-cloudfiles 1.7.10
編集:
manage.py
プロジェクトからそれを行うと、次のエラーが発生します
File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/cumulus/management/commands/syncstatic.py", line 54, in handle
self.sync_files()
File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/cumulus/management/commands/syncstatic.py", line 60, in sync_files
servicenet=self.USE_SERVICENET) File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/cloudfiles/__init__.py", line 98, in get_connection
return Connection(*args, **kwargs)
File "/home/jimit/python/environments/forkodecrm/local/lib/python2.7/site-packages/cloudfiles/connection.py", line 84, in __init__
raise TypeError("Incorrect or invalid arguments supplied")
TypeError: Incorrect or invalid arguments supplied
私のsettings.pyに次の設定を含めました
# cumulus rackspace config
CUMULUS = {
'USERNAME': 'myusername',
'CUMULUS_API_KEY': 'myapikey',
'CUMULUS_CONTAINER': 'mycontainer',
'STATIC_CONTAINER': 'mycontainer',
'USE_SERVICENET': False, # whether to use rackspace's internal private network
'CUMULUS_FILTER_LIST': [] # a list of files to exclude from sync }
DEFAULT_FILE_STORAGE = 'cumulus.storage.CloudFilesStorage'
STATICFILES_STORAGE = 'cumulus.storage.CloudFilesStaticStorage'