From 187206ba2b5a9d6878738ef1a2b6fbf0b80fbea1 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sun, 13 Nov 2022 19:01:34 -0600 Subject: [PATCH] Update setting --- dmoj/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmoj/settings.py b/dmoj/settings.py index 74309fb..faf337f 100644 --- a/dmoj/settings.py +++ b/dmoj/settings.py @@ -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