From 3fd4273b5f9d1246aac2136dacf39d473cd3893f Mon Sep 17 00:00:00 2001 From: Aatish Neupane Date: Sat, 17 Nov 2018 11:01:57 +0545 Subject: [PATCH] add media and static url based on script_name --- ipv6work/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipv6work/settings.py b/ipv6work/settings.py index eb0ce86..66d1451 100644 --- a/ipv6work/settings.py +++ b/ipv6work/settings.py @@ -161,12 +161,12 @@ USE_TZ = True # https://docs.djangoproject.com/en/2.1/howto/static-files/ -STATIC_URL = '/static/' +STATIC_URL = FORCE_SCRIPT_NAME + 'static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static/') MEDIA_ROOT = os.path.join(BASE_DIR, 'media/') -MEDIA_URL = '/media/' +MEDIA_URL = FORCE_SCRIPT_NAME + 'media/' CRISPY_TEMPLATE_PACK = 'bootstrap4'