Showing
1 changed file
with
7 additions
and
2 deletions
@@ -28,6 +28,10 @@ DEBUG = env.bool('DJANGO_DEBUG', False) | @@ -28,6 +28,10 @@ DEBUG = env.bool('DJANGO_DEBUG', False) | ||
28 | 28 | ||
29 | SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!') # noqa | 29 | SECRET_KEY = env('DJANGO_SECRET_KEY', default='CHANGEME!!!') # noqa |
30 | ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default='*') # noqa | 30 | ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', default='*') # noqa |
31 | +FORCE_SCRIPT_NAME = env.str('DJANGO_FORCE_SCRIPT_NAME', default=None) | ||
32 | +USE_X_FORWARDED_HOST = env.bool('DJANGO_USE_X_FORWARDED_HOST', default=False) | ||
33 | + | ||
34 | + | ||
31 | 35 | ||
32 | DATABASES = { | 36 | DATABASES = { |
33 | 'default': env.db('DATABASE_URL') | 37 | 'default': env.db('DATABASE_URL') |
@@ -87,10 +91,11 @@ LANGUAGES = [ | @@ -87,10 +91,11 @@ LANGUAGES = [ | ||
87 | # https://docs.djangoproject.com/en/1.7/howto/static-files/ | 91 | # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
88 | 92 | ||
89 | STATIC_ROOT = str(PROJECT_DIR.path('static')) | 93 | STATIC_ROOT = str(PROJECT_DIR.path('static')) |
90 | -STATIC_URL = '/static/' | 94 | +STATIC_URL = env.str('DJANGO_STATIC_URL', default='/static/') |
95 | +STATICFILES_DIRS = [str(PROJECT_DIR.path('assets')), ] | ||
91 | 96 | ||
92 | MEDIA_ROOT = str(PROJECT_DIR.path('media')) | 97 | MEDIA_ROOT = str(PROJECT_DIR.path('media')) |
93 | -MEDIA_URL = env.str('MEDIA_URL', default='/media/') | 98 | +MEDIA_URL = env.str('DJANGO_MEDIA_URL', default='/media/') |
94 | 99 | ||
95 | CORS_ORIGIN_ALLOW_ALL = True | 100 | CORS_ORIGIN_ALLOW_ALL = True |
96 | 101 |
-
Please register or login to post a comment