Change comment style (#67)

This commit is contained in:
Dung T.Bui 2023-05-20 06:52:37 +07:00 committed by GitHub
parent 966e8c9db5
commit 411f3da45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
784 changed files with 696 additions and 307 deletions

15
dmoj/settings.py Normal file → Executable file
View file

@ -219,6 +219,7 @@ else:
}
INSTALLED_APPS += (
"debug_toolbar",
"django.contrib.admin",
"judge",
"django.contrib.auth",
@ -248,6 +249,7 @@ INSTALLED_APPS += (
)
MIDDLEWARE = (
"debug_toolbar.middleware.DebugToolbarMiddleware",
"judge.middleware.SlowRequestMiddleware",
"judge.middleware.ShortCircuitMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
@ -421,7 +423,12 @@ STATICFILES_DIRS = [
STATIC_URL = "/static/"
# Define a cache
CACHES = {}
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
"LOCATION": "127.0.0.1:11211",
}
}
# Authentication
AUTHENTICATION_BACKENDS = (
@ -481,3 +488,9 @@ except IOError:
pass
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
INTERNAL_IPS = [
# ...
"127.0.0.1",
# ...
]