Use consistent STATICFILES_STORAGE across environments.

collectstatic only adds hashes to static file filenames when
STATICFILES_STORAGE is set correctly. We want the Dockerfile and
other things to have the hashed filenames, but the Dockerfile runs
collectstatic under the Development environment. Also, there's no
problem using the manifest storage during development.

So we move the setting.
This commit is contained in:
Michael Kelly 2016-02-26 14:04:12 -08:00
Родитель 5ba086c182
Коммит ae080c42c2
2 изменённых файлов: 2 добавлений и 1 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -8,3 +8,4 @@ _build
/.cache/
/etc/ssl
/__version__/
/tmp

Просмотреть файл

@ -84,6 +84,7 @@ class Base(Core):
ALLOWED_HOSTS = values.ListValue([])
DATABASES = values.DatabaseURLValue('postgres://postgres@localhost/normandy')
ADMINS = values.SingleNestedListValue([])
STATICFILES_STORAGE = values.Value('whitenoise.django.GzipManifestStaticFilesStorage')
EMAIL_HOST_USER = values.Value()
EMAIL_HOST = values.Value()
@ -146,7 +147,6 @@ class Development(Base):
class Production(Base):
"""Settings for the production environment."""
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
class Test(Base):