示例#1
0
文件: urls.py 项目: ilyg8853/eoj3
from home.views import home_view, faq_view, TestView, forbidden_view, not_found_view, server_error_view, PasteView
from migrate.views import migrate_view
from tests.views import judge_mock, query_mock, query_report_mock
from utils.auth_view import logout
from utils.comment import login_required_post_comment
from utils.site_settings import force_closed
from utils.serve_nginx import serve_with_nginx
from .settings import DEBUG, UPLOAD_DIR, STATIC_DIR, MEDIA_ROOT, GENERATE_DIR

urlpatterns = [
    url(r'^login/$', my_login, name='login'),
    url(r'^contest/', include('contest.urls', namespace='contest')),
    url(r'^backstage/', include('backstage.urls', namespace='backstage')),
    url(r'^captcha/', include('captcha.urls')),
    url(r'^logout/$', logout, name='logout'),
    url(r'^search/$', search_view, name='search', kwargs=force_closed()),
    url(r'^mirror/', include('filemanager.urls', namespace='filemanager')),
    url(r'^admin/', admin.site.urls),
    url(r'^api/', include('api.urls', namespace='api')),
    url(r'^$', home_view, name='home'),
    url(r'^faq/$', faq_view, name='faq'),
    url(r'^problem/',
        include('problem.urls', namespace='problem'),
        kwargs=force_closed()),
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url(r'^account/', include('account.urls', namespace='account')),
    url(r'^blog/',
        include('blog.urls', namespace='blog'),
        kwargs=force_closed()),
    url(r'^feedback/', FeedbackView.as_view(), name='feedback'),
    url(r'^polygon/', include('polygon.urls', namespace='polygon')),
示例#2
0
文件: urls.py 项目: nihongsama/eoj3
from django.conf.urls import url

from utils.site_settings import force_closed
from . import views
from .payment import PaymentList

app_name = "account"

urlpatterns = [
    url(r'^settings/profile/$',
        views.UpdateProfileView.as_view(),
        name='profile',
        kwargs=force_closed()),
    url(r'^settings/security/$',
        views.my_password_change,
        name='security',
        kwargs=force_closed()),
    url(r'^settings/preference/$',
        views.UpdatePreferencesView.as_view(),
        name='preference',
        kwargs=force_closed()),
    url(r'^settings/username/update/$',
        views.ChangeUsernameView.as_view(),
        name='change_username'),
    url(r'^settings/payment/$', PaymentList.as_view(), name='payment'),
    url(r'^password_reset/$', views.my_password_reset, name='reset_password'),
    url(r'^password_reset_done/$',
        views.my_password_reset_done,
        name='password_reset_done'),
    url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
        views.my_password_reset_confirm,
示例#3
0
文件: urls.py 项目: qinmaye/eoj3
from django.conf.urls import url

from utils.site_settings import force_closed
from . import views

app_name = "account"

urlpatterns = [
  url(r'^settings/profile/$', views.UpdateProfileView.as_view(), name='profile', kwargs=force_closed()),
  url(r'^settings/security/$', views.my_password_change, name='security', kwargs=force_closed()),
  url(r'^settings/preference/$', views.UpdatePreferencesView.as_view(), name='preference', kwargs=force_closed()),
  url(r'^settings/username/update/$', views.ChangeUsernameView.as_view(), name='change_username'),
  url(r'^password_reset/$', views.my_password_reset, name='reset_password'),
  url(r'^password_reset_done/$', views.my_password_reset_done, name='password_reset_done'),
  url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
      views.my_password_reset_confirm, name='password_reset_confirm'),
  url(r'^ban/(?P<user_id>[0-9]+)/$', views.BanAccount.as_view(), name='ban_account'),
]
示例#4
0
from utils.comment import login_required_post_comment
import django_comments_xtd.api as comment_xtd_api

from account.views import my_login, RegisterView, FeedbackView
from home.views import home_view, faq_view, TestView, forbidden_view, not_found_view, server_error_view, PasteView
from home.museum import museum_view
from utils.site_settings import force_closed
from .settings import UPLOAD_DIR, DEBUG, STATIC_DIR, MEDIA_URL, MEDIA_ROOT

urlpatterns = [
  url(r'^login/$', my_login, name='login'),
  url(r'^contest/', include('contest.urls', namespace='contest')),
  url(r'^backstage/', include('backstage.urls', namespace='backstage')),
  url(r'^captcha/', include('captcha.urls')),
  url(r'^logout/$', logout, name='logout'),
  url(r'^search/$', search_view, name='search', kwargs=force_closed()),
  url(r'^mirror/', include('filemanager.urls', namespace='filemanager')),
  url(r'^admin/', admin.site.urls),
  url(r'^api/', include('api.urls', namespace='api')),
  url(r'^$', home_view, name='home'),
  url(r'^faq/$', faq_view, name='faq'),
  url(r'^problem/', include('problem.urls', namespace='problem'), kwargs=force_closed()),
  url(r'^register/$', RegisterView.as_view(), name='register'),
  url(r'^account/', include('account.urls', namespace='account')),
  url(r'^blog/', include('blog.urls', namespace='blog'), kwargs=force_closed()),
  url(r'^feedback/', FeedbackView.as_view(), name='feedback'),
  url(r'^polygon/', include('polygon.urls', namespace='polygon')),
  url(r'^notification/', include('notification.urls', namespace='notification')),
  url(r'^migrate/$', migrate_view, name='migrate'),
  url(r'^museum/$', museum_view, name='museum'),
  url(r'^paste/$', PasteView.as_view(), name='pastebin'),
示例#5
0
文件: urls.py 项目: OnceCemic/eoj3
from api.views import tag
from api.views.problem import ProblemView
from api.views.problemlist import ProblemListView
from api.views.user import UserView
from home import search_api
from submission.views import submission_code_api, submission_count_api
from utils.markdown3 import markdown_convert_api
from utils.site_settings import force_closed
from .views.submission import SubmissionListView

app_name = "api"

urlpatterns = [
    url(r'^submission/$', submission_code_api,
        kwargs=force_closed()),  # TODO: need test
    url(r'^submission/user/(?P<name>.*)/$', submission_count_api),
    url(r'^markdown/$', markdown_convert_api),
    url(r'^search/$',
        search_api.SearchAPI.as_view(),
        name='search',
        kwargs=force_closed()),
    url(r'^search/user/$',
        search_api.SearchUserAPI.as_view(),
        name='user_search',
        kwargs=force_closed()),
    url(r'^search/problem/$',
        search_api.SearchProblemAPI.as_view(),
        name='problem_search',
        kwargs=force_closed()),
]
示例#6
0
文件: urls.py 项目: OnceCemic/eoj3
from migrate.views import migrate_view
from tests.views import judge_mock, query_mock, query_report_mock
from utils.auth_view import logout
from utils.comment import login_required_post_comment
from utils.site_settings import force_closed
from utils.serve_nginx import serve_with_nginx
from .settings import DEBUG, UPLOAD_DIR, STATIC_DIR, MEDIA_ROOT, GENERATE_DIR


urlpatterns = [
  url(r'^login/$', my_login, name='login'),
  url(r'^contest/', include('contest.urls', namespace='contest')),
  url(r'^backstage/', include('backstage.urls', namespace='backstage')),
  url(r'^captcha/', include('captcha.urls')),
  url(r'^logout/$', logout, name='logout'),
  url(r'^search/$', search_view, name='search', kwargs=force_closed()),
  url(r'^mirror/', include('filemanager.urls', namespace='filemanager'), kwargs=force_closed()),
  url(r'^admin/', admin.site.urls),
  url(r'^api/', include('api.urls', namespace='api')),
  url(r'^$', home_view, name='home'),
  url(r'^faq/$', faq_view, name='faq'),
  url(r'^problem/', include('problem.urls', namespace='problem'), kwargs=force_closed()),
  url(r'^register/$', RegisterView.as_view(), name='register'),
  url(r'^account/', include('account.urls', namespace='account')),
  url(r'^blog/', include('blog.urls', namespace='blog'), kwargs=force_closed()),
  url(r'^feedback/', FeedbackView.as_view(), name='feedback'),
  url(r'^polygon/', include('polygon.urls', namespace='polygon'), kwargs=force_closed()),
  url(r'^notification/', include('notification.urls', namespace='notification')),
  url(r'^migrate/$', migrate_view, name='migrate', kwargs=force_closed()),
  url(r'^museum/$', museum_view, name='museum'),
  url(r'^paste/$', PasteView.as_view(), name='pastebin'),  # TODO: delete?