Showing
1 changed file
with
6 additions
and
2 deletions
@@ -29,6 +29,9 @@ DEBUG = env.bool('DJANGO_DEBUG', False) | @@ -29,6 +29,9 @@ DEBUG = env.bool('DJANGO_DEBUG', False) | ||
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 | 31 | ||
32 | +FORCE_SCRIPT_NAME = env.str('DJANGO_FORCE_SCRIPT_NAME', default=None) | ||
33 | +USE_X_FORWARDED_HOST = env.bool('DJANGO_USE_X_FORWARDED_HOST', default=False) | ||
34 | + | ||
32 | DATABASES = { | 35 | DATABASES = { |
33 | 'default': env.db('DATABASE_URL') | 36 | 'default': env.db('DATABASE_URL') |
34 | } | 37 | } |
@@ -94,10 +97,11 @@ LANGUAGES = [ | @@ -94,10 +97,11 @@ LANGUAGES = [ | ||
94 | # https://docs.djangoproject.com/en/1.7/howto/static-files/ | 97 | # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
95 | 98 | ||
96 | STATIC_ROOT = str(PROJECT_DIR.path('static')) | 99 | STATIC_ROOT = str(PROJECT_DIR.path('static')) |
97 | -STATIC_URL = '/static/' | 100 | +STATIC_URL = env.str('DJANGO_STATIC_URL', default='/static/') |
101 | +STATICFILES_DIRS = [str(PROJECT_DIR.path('assets')), ] | ||
98 | 102 | ||
99 | MEDIA_ROOT = str(PROJECT_DIR.path('media')) | 103 | MEDIA_ROOT = str(PROJECT_DIR.path('media')) |
100 | -MEDIA_URL = env.str('MEDIA_URL', default='/media/') | 104 | +MEDIA_URL = env.str('DJANGO_MEDIA_URL', default='/media/') |
101 | 105 | ||
102 | CORS_ORIGIN_ALLOW_ALL = True | 106 | CORS_ORIGIN_ALLOW_ALL = True |
103 | 107 |
-
Please register or login to post a comment