This reverts commit 0494a36681
.
This commit is contained in:
parent
0494a36681
commit
da2a11adf9
784 changed files with 696 additions and 307 deletions
0
dmoj/__init__.py
Normal file → Executable file
0
dmoj/__init__.py
Normal file → Executable file
0
dmoj/celery.py
Normal file → Executable file
0
dmoj/celery.py
Normal file → Executable file
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",
|
||||
# ...
|
||||
]
|
||||
|
|
0
dmoj/throttle_mail.py
Normal file → Executable file
0
dmoj/throttle_mail.py
Normal file → Executable file
4
dmoj/urls.py
Normal file → Executable file
4
dmoj/urls.py
Normal file → Executable file
|
@ -1,5 +1,6 @@
|
|||
import chat_box.views as chat
|
||||
|
||||
from django.urls import include, path
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
|
@ -206,6 +207,7 @@ def paged_list_view(view, name, **kwargs):
|
|||
|
||||
|
||||
urlpatterns = [
|
||||
path('__debug__/', include('debug_toolbar.urls')),
|
||||
url("", include("pagedown.urls")),
|
||||
url(
|
||||
r"^$",
|
||||
|
@ -468,6 +470,8 @@ urlpatterns = [
|
|||
url(r"^comments/upvote/$", comment.upvote_comment, name="comment_upvote"),
|
||||
url(r"^comments/downvote/$", comment.downvote_comment, name="comment_downvote"),
|
||||
url(r"^comments/hide/$", comment.comment_hide, name="comment_hide"),
|
||||
url(r"^comments/get_replies/$", comment.get_replies, name="comment_get_replies"),
|
||||
url(r"^comments/show_more/$", comment.get_show_more, name="comment_show_more"),
|
||||
url(
|
||||
r"^comments/(?P<id>\d+)/",
|
||||
include(
|
||||
|
|
0
dmoj/wsgi.py
Normal file → Executable file
0
dmoj/wsgi.py
Normal file → Executable file
0
dmoj/wsgi_async.py
Normal file → Executable file
0
dmoj/wsgi_async.py
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue