mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Try to fix css broken issue
This commit is contained in:
+4
-1
@@ -25,8 +25,12 @@ INSTALLED_APPS = [
|
||||
|
||||
ROOT_URLCONF = 'core.urls'
|
||||
|
||||
# Why WhiteNoise failed: WhiteNoiseMiddleware was at the bottom of MIDDLEWARE (position 8). WhiteNoise requires being right after SecurityMiddleware (position 2) so
|
||||
# it can intercept /static/* requests before other middleware processes them. When it was last, the requests were falling through to Django URL routing, which
|
||||
# returned HTML 404 pages.
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'core.middleware.CustomLocaleMiddleware', # 替换原来的 LocaleMiddleware
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
@@ -34,7 +38,6 @@ MIDDLEWARE = [
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||
]
|
||||
|
||||
TEMPLATES = [
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user