Update setting

This commit is contained in:
cuom1999 2022-11-13 19:01:34 -06:00
parent fb3ceb51ac
commit 187206ba2b

View file

@ -254,9 +254,9 @@ INSTALLED_APPS += (
MIDDLEWARE = (
"judge.middleware.ShortCircuitMiddleware",
"django.middleware.common.CommonMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"judge.middleware.DMOJLoginMiddleware",
@ -274,6 +274,8 @@ MIDDLEWARE = (
X_FRAME_OPTIONS = "SAMEORIGIN"
LANGUAGE_COOKIE_AGE = 8640000
FORM_RENDERER = "django.forms.renderers.TemplatesSetting"
IMPERSONATE_REQUIRE_SUPERUSER = True