from django.conf.urls import url, include

from olympiad_manager.views.levels import ManageLevelsView
from olympiad_manager.views.course import AddCourseView, EditCourseView, AddTeachingHourView, \
    TeachingHourListView
from olympiad_manager.views.course import CourseListView
from olympiad_manager.views.home import OlympiadView, RefreshM2, RefreshMedal
from olympiad_manager.views.m1m2date import M1M2Date
from olympiad_manager.views.problem import ProblemListView, AddProblemView, EditProblemView, \
    ManageGraderView, \
    DeleteGraderView, GradeView, ExamResultsView
from olympiad_manager.views.results import ResultsView, Medalsview
from olympiad_manager.views.summer_exam import SummerExamListView, AddSummerExamView, \
    EditSummerExamView

problem_urlpatterns = [
    url(r'^$', ProblemListView.as_view(), name='list'),
    url(r'^results/$', ExamResultsView.as_view(), name='results'),
    url(r'^add/$', AddProblemView.as_view(), name='add'),
    url(r'^(?P<pnum>\d+)/graders/$', ManageGraderView.as_view(), name='graders'),
    url(r'^(?P<pnum>\d+)/graders/delete/$', DeleteGraderView.as_view()),
    url(r'^(?P<pnum>\d+)/$', EditProblemView.as_view(), name='edit'),
]

course_urlpatterns = [
    url(r'^$', CourseListView.as_view(), name='list'),
    url(r'^add/$', AddCourseView.as_view(), name='add'),
    url(r'^(?P<cname>[^/]*)/$', EditCourseView.as_view(), name='edit'),
    url(r'^(?P<cname>[^/]*)/add-teaching-hour/$', AddTeachingHourView.as_view(),
        name='add-teaching-hour'),
    url(r'^(?P<cname>[^/]*)/teaching-hours/$', TeachingHourListView.as_view(),
        name='teaching-hours')
]

summer_exam_urlpatterns = [
    url(r'^$', SummerExamListView.as_view(), name='list'),
    url(r'^add/$', AddSummerExamView.as_view(), name='add'),
    url(r'^(?P<eid>\d+)/$', EditSummerExamView.as_view(), name='edit'),
]

olympiad_urlpatterns = [
    url(r'^$', OlympiadView.as_view(), name='home'),
    url(r'^course/', include(course_urlpatterns, namespace='course')),
    url(r'^summer-exam/', include(summer_exam_urlpatterns, namespace='summer-camp-exam')),
    url(r'^m1m2date/$', M1M2Date.as_view(), name='m1m2date'),
    url(r'^results/$', ResultsView.as_view(), name='results'),
    url(r'^refresh-m2/$', RefreshM2.as_view(), name='refresh-m2'),
    url(r'^refresh-medal/$', RefreshMedal.as_view(), name='refresh-medal'),
    url(r'^medals/$', Medalsview.as_view(), name='medals'),
    url(r'^problem/(?P<eid>\d+)/', include(problem_urlpatterns, namespace='problem')),
    url(r'^levels/$', ManageLevelsView.as_view(), name="levels"),
]

ea5a8018c0194b2fb6a4449940be2da4ed5faf12
<mask token>

<mask token>
problem_urlpatterns = [url('^$', ProblemListView.as_view(), name='list'),
    url('^results/$', ExamResultsView.as_view(), name='results'), url(
    '^add/$', AddProblemView.as_view(), name='add'), url(
    '^(?P<pnum>\\d+)/graders/$', ManageGraderView.as_view(), name='graders'
    ), url('^(?P<pnum>\\d+)/graders/delete/$', DeleteGraderView.as_view()),
    url('^(?P<pnum>\\d+)/$', EditProblemView.as_view(), name='edit')]
course_urlpatterns = [url('^$', CourseListView.as_view(), name='list'), url
    ('^add/$', AddCourseView.as_view(), name='add'), url(
    '^(?P<cname>[^/]*)/$', EditCourseView.as_view(), name='edit'), url(
    '^(?P<cname>[^/]*)/add-teaching-hour/$', AddTeachingHourView.as_view(),
    name='add-teaching-hour'), url('^(?P<cname>[^/]*)/teaching-hours/$',
    TeachingHourListView.as_view(), name='teaching-hours')]
summer_exam_urlpatterns = [url('^$', SummerExamListView.as_view(), name=
    'list'), url('^add/$', AddSummerExamView.as_view(), name='add'), url(
    '^(?P<eid>\\d+)/$', EditSummerExamView.as_view(), name='edit')]
olympiad_urlpatterns = [url('^$', OlympiadView.as_view(), name='home'), url
    ('^course/', include(course_urlpatterns, namespace='course')), url(
    '^summer-exam/', include(summer_exam_urlpatterns, namespace=
    'summer-camp-exam')), url('^m1m2date/$', M1M2Date.as_view(), name=
    'm1m2date'), url('^results/$', ResultsView.as_view(), name='results'),
    url('^refresh-m2/$', RefreshM2.as_view(), name='refresh-m2'), url(
    '^refresh-medal/$', RefreshMedal.as_view(), name='refresh-medal'), url(
    '^medals/$', Medalsview.as_view(), name='medals'), url(
    '^problem/(?P<eid>\\d+)/', include(problem_urlpatterns, namespace=
    'problem')), url('^levels/$', ManageLevelsView.as_view(), name='levels')]

from django.conf.urls import url, include
from olympiad_manager.views.levels import ManageLevelsView
from olympiad_manager.views.course import AddCourseView, EditCourseView, AddTeachingHourView, TeachingHourListView
from olympiad_manager.views.course import CourseListView
from olympiad_manager.views.home import OlympiadView, RefreshM2, RefreshMedal
from olympiad_manager.views.m1m2date import M1M2Date
from olympiad_manager.views.problem import ProblemListView, AddProblemView, EditProblemView, ManageGraderView, DeleteGraderView, GradeView, ExamResultsView
from olympiad_manager.views.results import ResultsView, Medalsview
from olympiad_manager.views.summer_exam import SummerExamListView, AddSummerExamView, EditSummerExamView
problem_urlpatterns = [url('^$', ProblemListView.as_view(), name='list'),
    url('^results/$', ExamResultsView.as_view(), name='results'), url(
    '^add/$', AddProblemView.as_view(), name='add'), url(
    '^(?P<pnum>\\d+)/graders/$', ManageGraderView.as_view(), name='graders'
    ), url('^(?P<pnum>\\d+)/graders/delete/$', DeleteGraderView.as_view()),
    url('^(?P<pnum>\\d+)/$', EditProblemView.as_view(), name='edit')]
course_urlpatterns = [url('^$', CourseListView.as_view(), name='list'), url
    ('^add/$', AddCourseView.as_view(), name='add'), url(
    '^(?P<cname>[^/]*)/$', EditCourseView.as_view(), name='edit'), url(
    '^(?P<cname>[^/]*)/add-teaching-hour/$', AddTeachingHourView.as_view(),
    name='add-teaching-hour'), url('^(?P<cname>[^/]*)/teaching-hours/$',
    TeachingHourListView.as_view(), name='teaching-hours')]
summer_exam_urlpatterns = [url('^$', SummerExamListView.as_view(), name=
    'list'), url('^add/$', AddSummerExamView.as_view(), name='add'), url(
    '^(?P<eid>\\d+)/$', EditSummerExamView.as_view(), name='edit')]
olympiad_urlpatterns = [url('^$', OlympiadView.as_view(), name='home'), url
    ('^course/', include(course_urlpatterns, namespace='course')), url(
    '^summer-exam/', include(summer_exam_urlpatterns, namespace=
    'summer-camp-exam')), url('^m1m2date/$', M1M2Date.as_view(), name=
    'm1m2date'), url('^results/$', ResultsView.as_view(), name='results'),
    url('^refresh-m2/$', RefreshM2.as_view(), name='refresh-m2'), url(
    '^refresh-medal/$', RefreshMedal.as_view(), name='refresh-medal'), url(
    '^medals/$', Medalsview.as_view(), name='medals'), url(
    '^problem/(?P<eid>\\d+)/', include(problem_urlpatterns, namespace=
    'problem')), url('^levels/$', ManageLevelsView.as_view(), name='levels')]

from django.conf.urls import url, include

from olympiad_manager.views.levels import ManageLevelsView
from olympiad_manager.views.course import AddCourseView, EditCourseView, AddTeachingHourView, \
    TeachingHourListView
from olympiad_manager.views.course import CourseListView
from olympiad_manager.views.home import OlympiadView, RefreshM2, RefreshMedal
from olympiad_manager.views.m1m2date import M1M2Date
from olympiad_manager.views.problem import ProblemListView, AddProblemView, EditProblemView, \
    ManageGraderView, \
    DeleteGraderView, GradeView, ExamResultsView
from olympiad_manager.views.results import ResultsView, Medalsview
from olympiad_manager.views.summer_exam import SummerExamListView, AddSummerExamView, \
    EditSummerExamView

problem_urlpatterns = [
    url(r'^$', ProblemListView.as_view(), name='list'),
    url(r'^results/$', ExamResultsView.as_view(), name='results'),
    url(r'^add/$', AddProblemView.as_view(), name='add'),
    url(r'^(?P<pnum>\d+)/graders/$', ManageGraderView.as_view(), name='graders'),
    url(r'^(?P<pnum>\d+)/graders/delete/$', DeleteGraderView.as_view()),
    url(r'^(?P<pnum>\d+)/$', EditProblemView.as_view(), name='edit'),
]

course_urlpatterns = [
    url(r'^$', CourseListView.as_view(), name='list'),
    url(r'^add/$', AddCourseView.as_view(), name='add'),
    url(r'^(?P<cname>[^/]*)/$', EditCourseView.as_view(), name='edit'),
    url(r'^(?P<cname>[^/]*)/add-teaching-hour/$', AddTeachingHourView.as_view(),
        name='add-teaching-hour'),
    url(r'^(?P<cname>[^/]*)/teaching-hours/$', TeachingHourListView.as_view(),
        name='teaching-hours')
]

summer_exam_urlpatterns = [
    url(r'^$', SummerExamListView.as_view(), name='list'),
    url(r'^add/$', AddSummerExamView.as_view(), name='add'),
    url(r'^(?P<eid>\d+)/$', EditSummerExamView.as_view(), name='edit'),
]

olympiad_urlpatterns = [
    url(r'^$', OlympiadView.as_view(), name='home'),
    url(r'^course/', include(course_urlpatterns, namespace='course')),
    url(r'^summer-exam/', include(summer_exam_urlpatterns, namespace='summer-camp-exam')),
    url(r'^m1m2date/$', M1M2Date.as_view(), name='m1m2date'),
    url(r'^results/$', ResultsView.as_view(), name='results'),
    url(r'^refresh-m2/$', RefreshM2.as_view(), name='refresh-m2'),
    url(r'^refresh-medal/$', RefreshMedal.as_view(), name='refresh-medal'),
    url(r'^medals/$', Medalsview.as_view(), name='medals'),
    url(r'^problem/(?P<eid>\d+)/', include(problem_urlpatterns, namespace='problem')),
    url(r'^levels/$', ManageLevelsView.as_view(), name="levels"),
]
