Update setting
This commit is contained in:
parent
fb3ceb51ac
commit
187206ba2b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue