Create middleware directory

This commit is contained in:
Mouse Reeve 2021-09-17 11:31:19 -07:00
parent 357e111411
commit 252fff8bfe
3 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
from timezone_middleware import TimezoneMiddleware

View file

@ -77,7 +77,7 @@ MIDDLEWARE = [
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"bookwyrm.timezone_middleware.TimezoneMiddleware",
"bookwyrm.middleware.TimezoneMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]