diff options
| author | 2019-04-14 14:44:15 +0100 | |
|---|---|---|
| committer | 2019-04-14 14:44:15 +0100 | |
| commit | adafc9e405434b6b5ce47eff5be0e8be9e9688b6 (patch) | |
| tree | ef20dee66b0b6b1b881f86853d8636cad257e1f9 /pydis_site/settings.py | |
| parent | Some work towards fixed navigation (diff) | |
Fixing up image plugin
Diffstat (limited to 'pydis_site/settings.py')
| -rw-r--r-- | pydis_site/settings.py | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 6c9af3aa..46d49f44 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -120,7 +120,9 @@ TEMPLATES = [              'context_processors': [                  'django.template.context_processors.debug', +                'django.template.context_processors.media',                  'django.template.context_processors.request', +                'django.template.context_processors.static',                  'django.contrib.auth.context_processors.auth',                  'django.contrib.messages.context_processors.messages', @@ -181,6 +183,9 @@ STATIC_URL = '/static/'  STATICFILES_DIRS = [os.path.join(BASE_DIR, 'pydis_site', 'static')]  STATIC_ROOT = env('STATIC_ROOT', default='staticfiles') +MEDIA_URL = '/media/' +MEDIA_ROOT = env('MEDIA_ROOT', default='media') +  STATICFILES_FINDERS = [    'django.contrib.staticfiles.finders.FileSystemFinder',    'django.contrib.staticfiles.finders.AppDirectoriesFinder',  |