Change comment style (#67)
This commit is contained in:
parent
966e8c9db5
commit
411f3da45e
784 changed files with 696 additions and 307 deletions
15
dmoj/settings.py
Normal file → Executable file
15
dmoj/settings.py
Normal file → Executable 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",
|
||||
# ...
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue