Sono nuovo di django! Quando uso il comando python manage.py collectstatic
ottengo questo erroreImpossibile eseguire collectstatic
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path
Ma posso eseguire correttamente il server.
mie dichiarazioni file statici sono:
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS = (
('assets', os.path.join(PROJECT_DIR, '../static')),
)
ed eseguire il debug è impostata su true
DEBUG = True
Come posso risolvere questo problema? Altrove mancano i pacchetti di installazione?
Cosa non capisci di questo messaggio di errore molto chiaro? Non hai impostato STATIC_ROOT su un percorso file. –
heroku http://stackoverflow.com/questions/21141315/django-static-files-on-heroku –