зеркало из https://github.com/mozilla/normandy.git
Merge pull request #46 from Osmose/fix-static-files
Use consistent STATICFILES_STORAGE across environments.
This commit is contained in:
Коммит
b329e89aa3
|
@ -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):
|
||||
|
|
Загрузка…
Ссылка в новой задаче