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