aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py5
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',