mam zainstalowane django w moim virtualenv tak:komenda collectstatic nie jest dostępny w Django 1.6a1
git clone git://github.com/django/django.git django-trunk
pip install -e django-trunk/
w ustawieniach mają ten plik:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'django.contrib.flatpages',
'south',
'djcelery',
'gunicorn',
'sorl.thumbnail',
'template_utils',
'compressor',
'tagging',
'ckeditor',
'mptt',
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
)
Kiedy próbuję zrobić
python manage.py collectstatic
Otrzymuję ten błąd:
Unknown command: 'collectstatic'
Jeśli robię
python manage.py --version
uzyskać
1.6a1
Dlaczego nie jest collectstatic dostępne?
Edit:
Kiedy biegnę
python manage.py --help
uzyskać to:
Usage: manage.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Raise on exception
--version show program's version number and exit
-h, --help show this help message and exit
Type 'manage.py help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
check
cleanup
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
runfcgi
runserver
shell
sql
sqlall
sqlclear
sqlcustom
sqldropindexes
sqlflush
sqlindexes
sqlinitialdata
sqlsequencereset
startapp
startproject
syncdb
test
testserver
validate
Czy aktywować wirtualny env? Zgodnie z aktualnymi notatkami do wydania _beta_ 1.6a1, gromadzenie danych statycznych powinno być nadal dostępne. –
Tak, uruchamianie tych poleceń z mojego aktywowanego virtualenv. –
sprawdź 'python manage.py --help' i sprawdź, czy jest na liście. Spróbuj także 'django-admin.py collectstatic'. –