2015-08-04 13:22:37 +08:00
|
|
|
# coding=utf-8
|
|
|
|
from django.conf.urls import include, url
|
2015-08-23 20:45:02 +08:00
|
|
|
from django.views.generic import TemplateView
|
2015-08-04 13:22:37 +08:00
|
|
|
|
2015-08-06 12:25:16 +08:00
|
|
|
from .tests import (LoginRequiredCBVTestWithArgs, LoginRequiredCBVTestWithoutArgs,
|
2015-10-14 09:57:43 +08:00
|
|
|
AdminRequiredCBVTestWithArgs, AdminRequiredCBVTestWithoutArgs,
|
|
|
|
SuperAdminRequiredCBVTestWithArgs, SuperAdminRequiredCBVTestWithoutArgs)
|
2015-08-04 13:22:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
2015-08-06 12:25:16 +08:00
|
|
|
url(r'^login_required_test/fbv/1/$', "account.tests.login_required_FBV_test_without_args"),
|
|
|
|
url(r'^login_required_test/fbv/(?P<problem_id>\d+)/$', "account.tests.login_required_FBC_test_with_args"),
|
|
|
|
url(r'^login_required_test/cbv/1/$', LoginRequiredCBVTestWithoutArgs.as_view()),
|
|
|
|
url(r'^login_required_test/cbv/(?P<problem_id>\d+)/$', LoginRequiredCBVTestWithArgs.as_view()),
|
|
|
|
|
|
|
|
url(r'^admin_required_test/fbv/1/$', "account.tests.admin_required_FBV_test_without_args"),
|
|
|
|
url(r'^admin_required_test/fbv/(?P<problem_id>\d+)/$', "account.tests.admin_required_FBC_test_with_args"),
|
|
|
|
url(r'^admin_required_test/cbv/1/$', AdminRequiredCBVTestWithoutArgs.as_view()),
|
|
|
|
url(r'^admin_required_test/cbv/(?P<problem_id>\d+)/$', AdminRequiredCBVTestWithArgs.as_view()),
|
2015-10-14 09:57:43 +08:00
|
|
|
|
|
|
|
url(r'^super_admin_required_test/fbv/1/$', "account.tests.super_admin_required_FBV_test_without_args"),
|
|
|
|
url(r'^super_admin_required_test/fbv/(?P<problem_id>\d+)/$', "account.tests.super_admin_required_FBC_test_with_args"),
|
|
|
|
url(r'^super_admin_required_test/cbv/1/$', SuperAdminRequiredCBVTestWithoutArgs.as_view()),
|
|
|
|
url(r'^super_admin_required_test/cbv/(?P<problem_id>\d+)/$', SuperAdminRequiredCBVTestWithArgs.as_view()),
|
|
|
|
|
2015-08-23 20:45:02 +08:00
|
|
|
url(r'^login/$', TemplateView.as_view(template_name="oj/account/login.html"), name="user_login_page"),
|
2015-08-04 13:22:37 +08:00
|
|
|
]
|