Fixed static folder not loading, should also fix #2

This commit is contained in:
Amazed 2018-12-19 13:22:41 +01:00
parent 7872bd31af
commit 2876fe663d
1 changed files with 1 additions and 1 deletions

View File

@ -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