diff options
author | prashantsinalkar | 2019-09-07 23:48:48 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-09-07 23:48:48 +0530 |
commit | b410574b3898bfc376095f480001c98b04f08087 (patch) | |
tree | ced97777d3800f72e4910bf0e9d42a6d4ba9108d | |
parent | 2fe8087068dda1729115fc245f1fae6796a4363e (diff) | |
download | R_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.py | 4 |
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/") |