From 2876fe663d406a7b0a3170dd366aef3dc2622a1f Mon Sep 17 00:00:00 2001 From: HipsterCat Date: Wed, 19 Dec 2018 13:22:41 +0100 Subject: [PATCH] Fixed static folder not loading, should also fix #2 --- hrss/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrss/settings.py b/hrss/settings.py index 63dd847..88ede9a 100644 --- a/hrss/settings.py +++ b/hrss/settings.py @@ -123,7 +123,7 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ -STATIC_URL = '/'+urllib.parse.urlparse(BASE_URL).path[1:]+'/static/' +STATIC_URL = '/'+urllib.parse.urlparse(BASE_URL).path[1:]+'/static/' if urllib.parse.urlparse(BASE_URL).path[1:] else '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') USE_X_FORWARDED_HOST = True