コード例 #1
0
     UserChangePasswordAPIView.as_view(),
     name="user_change_password_api"),
 url(r'^api/username_check/$',
     UsernameCheckAPIView.as_view(),
     name="username_check_api"),
 url(r'^api/email_check/$',
     EmailCheckAPIView.as_view(),
     name="email_check_api"),
 url(r'^api/contest/password/$',
     ContestPasswordVerifyAPIView.as_view(),
     name="contest_password_verify_api"),
 url(r'^api/contest/submission/$',
     ContestSubmissionAPIView.as_view(),
     name="contest_submission_api"),
 url(r'^api/submission/$',
     SubmissionAPIView.as_view(),
     name="submission_api"),
 url(r'^api/group_join/$',
     JoinGroupAPIView.as_view(),
     name="group_join_api"),
 url(r'^api/admin/upload_image/$',
     SimditorImageUploadAPIView.as_view(),
     name="simditor_upload_image"),
 url(r'^api/admin/announcement/$',
     AnnouncementAdminAPIView.as_view(),
     name="announcement_admin_api"),
 url(r'^api/admin/contest/$',
     ContestAdminAPIView.as_view(),
     name="contest_admin_api"),
 url(r'^api/admin/user/$',
     UserAdminAPIView.as_view(),
コード例 #2
0
ファイル: urls.py プロジェクト: adamwen829/OnlineJudge
    url(r'^register/$', TemplateView.as_view(template_name="oj/account/register.html"),
        name="user_register_page"),
    url(r'^change_password/$', TemplateView.as_view(template_name="oj/account/change_password.html"),
        name="user_change_password_page"),
    url(r'^announcement/(?P<announcement_id>\d+)/$', "announcement.views.announcement_page",
        name="announcement_page"),

    url(r'^api/user/$', UserInfoAPIView.as_view(), name="user_info_api"),
    url(r'^api/login/$', UserLoginAPIView.as_view(), name="user_login_api"),
    url(r'^api/register/$', UserRegisterAPIView.as_view(), name="user_register_api"),
    url(r'^api/change_password/$', UserChangePasswordAPIView.as_view(), name="user_change_password_api"),
    url(r'^api/username_check/$', UsernameCheckAPIView.as_view(), name="username_check_api"),
    url(r'^api/email_check/$', EmailCheckAPIView.as_view(), name="email_check_api"),
    url(r'^api/contest/password/$', ContestPasswordVerifyAPIView.as_view(), name="contest_password_verify_api"),
    url(r'^api/contest/submission/$', ContestSubmissionAPIView.as_view(), name="contest_submission_api"),
    url(r'^api/submission/$', SubmissionAPIView.as_view(), name="submission_api"),
    url(r'^api/group_join/$', JoinGroupAPIView.as_view(), name="group_join_api"),
    

    url(r'^api/admin/upload_image/$', SimditorImageUploadAPIView.as_view(), name="simditor_upload_image"),
    url(r'^api/admin/announcement/$', AnnouncementAdminAPIView.as_view(), name="announcement_admin_api"),
    url(r'^api/admin/contest/$', ContestAdminAPIView.as_view(), name="contest_admin_api"),
    url(r'^api/admin/user/$', UserAdminAPIView.as_view(), name="user_admin_api"),
    url(r'^api/admin/group/$', GroupAdminAPIView.as_view(), name="group_admin_api"),
    url(r'^api/admin/group_member/$', GroupMemberAdminAPIView.as_view(), name="group_member_admin_api"),
    url(r'^api/admin/group/promot_as_admin/$', GroupPrometAdminAPIView.as_view(), name="group_promote_admin_api"),
    

    url(r'^api/admin/problem/$', ProblemAdminAPIView.as_view(), name="problem_admin_api"),
    url(r'^api/admin/contest_problem/$', ContestProblemAdminAPIView.as_view(), name="contest_problem_admin_api"),
    url(r'^api/admin/contest_problem/public/', MakeContestProblemPublicAPIView.as_view(), name="make_contest_problem_public"),
コード例 #3
0
    url(r'^register/$', TemplateView.as_view(template_name="oj/account/register.html"),
        name="user_register_page"),
    url(r'^change_password/$', TemplateView.as_view(template_name="oj/account/change_password.html"),
        name="user_change_password_page"),
    url(r'^announcement/(?P<announcement_id>\d+)/$', "announcement.views.announcement_page",
        name="announcement_page"),

    url(r'^api/user/$', UserInfoAPIView.as_view(), name="user_info_api"),
    url(r'^api/login/$', UserLoginAPIView.as_view(), name="user_login_api"),
    url(r'^api/register/$', UserRegisterAPIView.as_view(), name="user_register_api"),
    url(r'^api/change_password/$', UserChangePasswordAPIView.as_view(), name="user_change_password_api"),
    url(r'^api/username_check/$', UsernameCheckAPIView.as_view(), name="username_check_api"),
    url(r'^api/email_check/$', EmailCheckAPIView.as_view(), name="email_check_api"),
    url(r'^api/contest/password/$', ContestPasswordVerifyAPIView.as_view(), name="contest_password_verify_api"),
    url(r'^api/contest/submission/$', ContestSubmissionAPIView.as_view(), name="contest_submission_api"),
    url(r'^api/submission/$', SubmissionAPIView.as_view(), name="submission_api"),
    url(r'^api/group_join/$', JoinGroupAPIView.as_view(), name="group_join_api"),

    url(r'^api/admin/upload_image/$', SimditorImageUploadAPIView.as_view(), name="simditor_upload_image"),
    url(r'^api/admin/announcement/$', AnnouncementAdminAPIView.as_view(), name="announcement_admin_api"),
    url(r'^api/admin/contest/$', ContestAdminAPIView.as_view(), name="contest_admin_api"),
    url(r'^api/admin/user/$', UserAdminAPIView.as_view(), name="user_admin_api"),
    url(r'^api/admin/group/$', GroupAdminAPIView.as_view(), name="group_admin_api"),
    url(r'^api/admin/group_member/$', GroupMemberAdminAPIView.as_view(), name="group_member_admin_api"),
    url(r'^api/admin/group/promot_as_admin/$', GroupPrometAdminAPIView.as_view(), name="group_promote_admin_api"),

    url(r'^api/admin/problem/$', ProblemAdminAPIView.as_view(), name="problem_admin_api"),
    url(r'^api/admin/contest_problem/$', ContestProblemAdminAPIView.as_view(), name="contest_problem_admin_api"),
    url(r'^api/admin/contest_problem/public/', MakeContestProblemPublicAPIView.as_view(),
        name="make_contest_problem_public"),
    url(r'^api/admin/test_case_upload/$', TestCaseUploadAPIView.as_view(), name="test_case_upload_api"),
コード例 #4
0
ファイル: urls.py プロジェクト: YuTaoFighting/QNUOJ
from django.conf.urls import url
from django.contrib import admin

from announcement.views import AnnouncementAPIView, AnnouncementsAPIView
from account.views import UsersAPIView, UserAPIView, UserProfilesAPIView, UserProfileAPIView, RankListAPIView
from contest.views import ContestsAPIView, ContestAPIView
from problem.views import ProblemsAPIView, ProblemAPIView, Problem_idAPIView
from remoteoj.views import RemoteOJAPIView
from submission.views import SubmissionsAPIView, SubmissionAPIView
from utils.views import FriendLinksAPIView

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^users/$', UsersAPIView.as_view()),
    url(r'^users/(?P<pk>\d+)/$', UserAPIView.as_view()),
    url(r'^userprofiles/$', UserProfilesAPIView.as_view()),
    url(r'^userprofiles/(?P<pk>\d+)/$', UserProfileAPIView.as_view()),
    url(r'^announcements/$', AnnouncementsAPIView.as_view()),
    url(r'^announcements/(?P<pk>\d+)/$', AnnouncementAPIView.as_view()),
    url(r'^ranklist/$', RankListAPIView.as_view()),
    url(r'^problems/$', ProblemsAPIView.as_view()),
    url(r'^problems/(?P<pk>\d+)/$', ProblemAPIView.as_view()),
    url(r'^problems/(?P<id>[a-zA-Z]+-\d+)/$', Problem_idAPIView.as_view()),
    url(r'^contests/$', ContestsAPIView.as_view()),
    url(r'^contests/(?P<pk>\d+)/$', ContestAPIView.as_view()),
    url(r'^submissions/$', SubmissionsAPIView.as_view()),
    url(r'^submissions/(?P<pk>\d+)/$', SubmissionAPIView.as_view()),
    url(r'^general/activeojs/$', RemoteOJAPIView.as_view()),
    url(r'^general/friendlinks/$', FriendLinksAPIView.as_view()),
]