1
0
Fork 0

Add cache

This commit is contained in:
Dariusz Niemczyk 2023-08-18 13:44:34 +02:00
parent 7f19fe7c7a
commit c5a9fba034
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ INSTALLED_APPS = [
] ]
MIDDLEWARE = [ MIDDLEWARE = [
"django.middleware.cache.UpdateCacheMiddleware",
"django.middleware.security.SecurityMiddleware", "django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.sessions.middleware.SessionMiddleware",
@ -69,6 +70,7 @@ MIDDLEWARE = [
"django.contrib.messages.middleware.MessageMiddleware", "django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware",
"social_django.middleware.SocialAuthExceptionMiddleware", "social_django.middleware.SocialAuthExceptionMiddleware",
"django.middleware.cache.FetchFromCacheMiddleware",
] ]
ROOT_URLCONF = "spejstore.urls" ROOT_URLCONF = "spejstore.urls"