dump update
This commit is contained in:
parent
7680ba4bb0
commit
c3b7d465b1
784 changed files with 35 additions and 18 deletions
0
.browserslistrc
Normal file → Executable file
0
.browserslistrc
Normal file → Executable file
0
.flake8
Normal file → Executable file
0
.flake8
Normal file → Executable file
0
.github/workflows/init.yml
vendored
Normal file → Executable file
0
.github/workflows/init.yml
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.pre-commit-config.yaml
Normal file → Executable file
0
.pre-commit-config.yaml
Normal file → Executable file
0
502.html
Normal file → Executable file
0
502.html
Normal file → Executable file
0
LICENSE
Normal file → Executable file
0
LICENSE
Normal file → Executable file
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
0
chat_box/__init__.py
Normal file → Executable file
0
chat_box/__init__.py
Normal file → Executable file
0
chat_box/apps.py
Normal file → Executable file
0
chat_box/apps.py
Normal file → Executable file
0
chat_box/migrations/0001_initial.py
Normal file → Executable file
0
chat_box/migrations/0001_initial.py
Normal file → Executable file
0
chat_box/migrations/0002_message_hidden.py
Normal file → Executable file
0
chat_box/migrations/0002_message_hidden.py
Normal file → Executable file
0
chat_box/migrations/0003_auto_20200505_2306.py
Normal file → Executable file
0
chat_box/migrations/0003_auto_20200505_2306.py
Normal file → Executable file
0
chat_box/migrations/0004_auto_20200505_2336.py
Normal file → Executable file
0
chat_box/migrations/0004_auto_20200505_2336.py
Normal file → Executable file
0
chat_box/migrations/0005_auto_20211011_0714.py
Normal file → Executable file
0
chat_box/migrations/0005_auto_20211011_0714.py
Normal file → Executable file
0
chat_box/migrations/0006_userroom.py
Normal file → Executable file
0
chat_box/migrations/0006_userroom.py
Normal file → Executable file
0
chat_box/migrations/0007_auto_20211112_1255.py
Normal file → Executable file
0
chat_box/migrations/0007_auto_20211112_1255.py
Normal file → Executable file
0
chat_box/migrations/0008_ignore.py
Normal file → Executable file
0
chat_box/migrations/0008_ignore.py
Normal file → Executable file
0
chat_box/migrations/0009_auto_20220618_1452.py
Normal file → Executable file
0
chat_box/migrations/0009_auto_20220618_1452.py
Normal file → Executable file
0
chat_box/migrations/0010_auto_20221028_0300.py
Normal file → Executable file
0
chat_box/migrations/0010_auto_20221028_0300.py
Normal file → Executable file
0
chat_box/migrations/0011_alter_message_hidden.py
Normal file → Executable file
0
chat_box/migrations/0011_alter_message_hidden.py
Normal file → Executable file
0
chat_box/migrations/0012_auto_20230308_1417.py
Normal file → Executable file
0
chat_box/migrations/0012_auto_20230308_1417.py
Normal file → Executable file
0
chat_box/migrations/__init__.py
Normal file → Executable file
0
chat_box/migrations/__init__.py
Normal file → Executable file
0
chat_box/models.py
Normal file → Executable file
0
chat_box/models.py
Normal file → Executable file
0
chat_box/utils.py
Normal file → Executable file
0
chat_box/utils.py
Normal file → Executable file
0
chat_box/views.py
Normal file → Executable file
0
chat_box/views.py
Normal file → Executable file
0
django_2_2_pymysql_patch.py
Normal file → Executable file
0
django_2_2_pymysql_patch.py
Normal file → Executable file
0
django_ace/__init__.py
Normal file → Executable file
0
django_ace/__init__.py
Normal file → Executable file
0
django_ace/static/django_ace/img/contract.png
Normal file → Executable file
0
django_ace/static/django_ace/img/contract.png
Normal file → Executable file
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 304 B |
0
django_ace/static/django_ace/img/expand.png
Normal file → Executable file
0
django_ace/static/django_ace/img/expand.png
Normal file → Executable file
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 285 B |
0
django_ace/static/django_ace/widget.css
Normal file → Executable file
0
django_ace/static/django_ace/widget.css
Normal file → Executable file
0
django_ace/static/django_ace/widget.js
Normal file → Executable file
0
django_ace/static/django_ace/widget.js
Normal file → Executable file
0
django_ace/widgets.py
Normal file → Executable file
0
django_ace/widgets.py
Normal file → Executable file
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
11
dmoj/settings.py
Normal file → Executable file
11
dmoj/settings.py
Normal file → Executable file
|
@ -421,7 +421,16 @@ STATICFILES_DIRS = [
|
||||||
STATIC_URL = "/static/"
|
STATIC_URL = "/static/"
|
||||||
|
|
||||||
# Define a cache
|
# Define a cache
|
||||||
CACHES = {}
|
CACHES = {
|
||||||
|
"default": {
|
||||||
|
"BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
|
||||||
|
"LOCATION": [
|
||||||
|
"172.19.26.240:11211",
|
||||||
|
"172.19.26.242:11212",
|
||||||
|
"172.19.26.244:11213",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
AUTHENTICATION_BACKENDS = (
|
AUTHENTICATION_BACKENDS = (
|
||||||
|
|
0
dmoj/throttle_mail.py
Normal file → Executable file
0
dmoj/throttle_mail.py
Normal file → Executable file
0
dmoj/urls.py
Normal file → Executable file
0
dmoj/urls.py
Normal file → Executable file
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
0
dmoj_bridge_async.py
Normal file → Executable file
0
dmoj_bridge_async.py
Normal file → Executable file
0
dmoj_celery.py
Normal file → Executable file
0
dmoj_celery.py
Normal file → Executable file
0
dmoj_install_pymysql.py
Normal file → Executable file
0
dmoj_install_pymysql.py
Normal file → Executable file
0
judge/__init__.py
Normal file → Executable file
0
judge/__init__.py
Normal file → Executable file
0
judge/admin/__init__.py
Normal file → Executable file
0
judge/admin/__init__.py
Normal file → Executable file
0
judge/admin/comments.py
Normal file → Executable file
0
judge/admin/comments.py
Normal file → Executable file
0
judge/admin/contest.py
Normal file → Executable file
0
judge/admin/contest.py
Normal file → Executable file
0
judge/admin/interface.py
Normal file → Executable file
0
judge/admin/interface.py
Normal file → Executable file
0
judge/admin/organization.py
Normal file → Executable file
0
judge/admin/organization.py
Normal file → Executable file
0
judge/admin/problem.py
Normal file → Executable file
0
judge/admin/problem.py
Normal file → Executable file
0
judge/admin/profile.py
Normal file → Executable file
0
judge/admin/profile.py
Normal file → Executable file
0
judge/admin/runtime.py
Normal file → Executable file
0
judge/admin/runtime.py
Normal file → Executable file
0
judge/admin/submission.py
Normal file → Executable file
0
judge/admin/submission.py
Normal file → Executable file
0
judge/admin/taxon.py
Normal file → Executable file
0
judge/admin/taxon.py
Normal file → Executable file
0
judge/admin/ticket.py
Normal file → Executable file
0
judge/admin/ticket.py
Normal file → Executable file
0
judge/admin/volunteer.py
Normal file → Executable file
0
judge/admin/volunteer.py
Normal file → Executable file
0
judge/apps.py
Normal file → Executable file
0
judge/apps.py
Normal file → Executable file
0
judge/bridge/__init__.py
Normal file → Executable file
0
judge/bridge/__init__.py
Normal file → Executable file
0
judge/bridge/base_handler.py
Normal file → Executable file
0
judge/bridge/base_handler.py
Normal file → Executable file
0
judge/bridge/daemon.py
Normal file → Executable file
0
judge/bridge/daemon.py
Normal file → Executable file
0
judge/bridge/django_handler.py
Normal file → Executable file
0
judge/bridge/django_handler.py
Normal file → Executable file
0
judge/bridge/echo_test_client.py
Normal file → Executable file
0
judge/bridge/echo_test_client.py
Normal file → Executable file
0
judge/bridge/echo_test_server.py
Normal file → Executable file
0
judge/bridge/echo_test_server.py
Normal file → Executable file
0
judge/bridge/judge_handler.py
Normal file → Executable file
0
judge/bridge/judge_handler.py
Normal file → Executable file
0
judge/bridge/judge_list.py
Normal file → Executable file
0
judge/bridge/judge_list.py
Normal file → Executable file
0
judge/bridge/server.py
Normal file → Executable file
0
judge/bridge/server.py
Normal file → Executable file
0
judge/caching.py
Normal file → Executable file
0
judge/caching.py
Normal file → Executable file
4
judge/comments.py
Normal file → Executable file
4
judge/comments.py
Normal file → Executable file
|
@ -167,8 +167,8 @@ class CommentedDetailView(TemplateResponseMixin, SingleObjectMixin, View):
|
||||||
queryset.filter(parent=None, hidden=False)[:10]
|
queryset.filter(parent=None, hidden=False)[:10]
|
||||||
.select_related("author__user")
|
.select_related("author__user")
|
||||||
.defer("author__about")
|
.defer("author__about")
|
||||||
.annotate(revisions=Count("versions"))
|
# .annotate(count_replies=Count("replies"))
|
||||||
.annotate(count_replies=Count("replies"))
|
# .annotate(revisions=Count("versions"))
|
||||||
)
|
)
|
||||||
context["has_comments"] = queryset.exists()
|
context["has_comments"] = queryset.exists()
|
||||||
context["comment_lock"] = self.is_comment_locked()
|
context["comment_lock"] = self.is_comment_locked()
|
||||||
|
|
0
judge/contest_format/__init__.py
Normal file → Executable file
0
judge/contest_format/__init__.py
Normal file → Executable file
0
judge/contest_format/atcoder.py
Normal file → Executable file
0
judge/contest_format/atcoder.py
Normal file → Executable file
0
judge/contest_format/base.py
Normal file → Executable file
0
judge/contest_format/base.py
Normal file → Executable file
0
judge/contest_format/default.py
Normal file → Executable file
0
judge/contest_format/default.py
Normal file → Executable file
0
judge/contest_format/ecoo.py
Normal file → Executable file
0
judge/contest_format/ecoo.py
Normal file → Executable file
0
judge/contest_format/icpc.py
Normal file → Executable file
0
judge/contest_format/icpc.py
Normal file → Executable file
0
judge/contest_format/ioi.py
Normal file → Executable file
0
judge/contest_format/ioi.py
Normal file → Executable file
0
judge/contest_format/new_ioi.py
Normal file → Executable file
0
judge/contest_format/new_ioi.py
Normal file → Executable file
0
judge/contest_format/registry.py
Normal file → Executable file
0
judge/contest_format/registry.py
Normal file → Executable file
0
judge/dblock.py
Normal file → Executable file
0
judge/dblock.py
Normal file → Executable file
0
judge/event_poster.py
Normal file → Executable file
0
judge/event_poster.py
Normal file → Executable file
0
judge/event_poster_amqp.py
Normal file → Executable file
0
judge/event_poster_amqp.py
Normal file → Executable file
0
judge/event_poster_ws.py
Normal file → Executable file
0
judge/event_poster_ws.py
Normal file → Executable file
0
judge/feed.py
Normal file → Executable file
0
judge/feed.py
Normal file → Executable file
0
judge/fixtures/demo.json
Normal file → Executable file
0
judge/fixtures/demo.json
Normal file → Executable file
0
judge/fixtures/language_small.json
Normal file → Executable file
0
judge/fixtures/language_small.json
Normal file → Executable file
0
judge/fixtures/navbar.json
Normal file → Executable file
0
judge/fixtures/navbar.json
Normal file → Executable file
0
judge/forms.py
Normal file → Executable file
0
judge/forms.py
Normal file → Executable file
0
judge/fulltext.py
Normal file → Executable file
0
judge/fulltext.py
Normal file → Executable file
0
judge/highlight_code.py
Normal file → Executable file
0
judge/highlight_code.py
Normal file → Executable file
0
judge/jinja2/__init__.py
Normal file → Executable file
0
judge/jinja2/__init__.py
Normal file → Executable file
0
judge/jinja2/camo.py
Normal file → Executable file
0
judge/jinja2/camo.py
Normal file → Executable file
0
judge/jinja2/chat.py
Normal file → Executable file
0
judge/jinja2/chat.py
Normal file → Executable file
0
judge/jinja2/datetime.py
Normal file → Executable file
0
judge/jinja2/datetime.py
Normal file → Executable file
0
judge/jinja2/filesize.py
Normal file → Executable file
0
judge/jinja2/filesize.py
Normal file → Executable file
0
judge/jinja2/gravatar.py
Normal file → Executable file
0
judge/jinja2/gravatar.py
Normal file → Executable file
0
judge/jinja2/language.py
Normal file → Executable file
0
judge/jinja2/language.py
Normal file → Executable file
0
judge/jinja2/markdown/__init__.py
Normal file → Executable file
0
judge/jinja2/markdown/__init__.py
Normal file → Executable file
0
judge/jinja2/rating.py
Normal file → Executable file
0
judge/jinja2/rating.py
Normal file → Executable file
0
judge/jinja2/reference.py
Normal file → Executable file
0
judge/jinja2/reference.py
Normal file → Executable file
0
judge/jinja2/registry.py
Normal file → Executable file
0
judge/jinja2/registry.py
Normal file → Executable file
0
judge/jinja2/render.py
Normal file → Executable file
0
judge/jinja2/render.py
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue