Fixed static folder not loading, should also fix #2
This commit is contained in:
parent
7872bd31af
commit
2876fe663d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user