summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2019-09-07 23:48:48 +0530
committerprashantsinalkar2019-09-07 23:48:48 +0530
commitb410574b3898bfc376095f480001c98b04f08087 (patch)
treeced97777d3800f72e4910bf0e9d42a6d4ba9108d
parent2fe8087068dda1729115fc245f1fae6796a4363e (diff)
downloadR_on_Cloud_Web_Interface-b410574b3898bfc376095f480001c98b04f08087.tar.gz
R_on_Cloud_Web_Interface-b410574b3898bfc376095f480001c98b04f08087.tar.bz2
R_on_Cloud_Web_Interface-b410574b3898bfc376095f480001c98b04f08087.zip
updated the settings for static and media
-rw-r--r--R_on_Cloud/settings.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/R_on_Cloud/settings.py b/R_on_Cloud/settings.py
index cfe7385..6d62adc 100644
--- a/R_on_Cloud/settings.py
+++ b/R_on_Cloud/settings.py
@@ -62,6 +62,7 @@ TEMPLATES = [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
+ 'django.template.context_processors.media',
'django.contrib.messages.context_processors.messages',
],
},
@@ -137,7 +138,8 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
-
+MEDIA_URL = '/media/'
+MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "static/")