urls.py 909 Bytes
Newer Older
1
# core django imports
Jason D Yeomans's avatar
Jason D Yeomans committed
2
from django.conf.urls import patterns, include, url
3 4
# imports from your apps
from .views import DetailStudent, UpdateStudent, DetailStudentSettings,\
Daniel W Bond's avatar
Daniel W Bond committed
5 6
    DetailCurrentStudent, DetailCurrentStudentSettings, UpdateStudentMajor,\
    ListMajors
7

Jason D Yeomans's avatar
Jason D Yeomans committed
8 9

urlpatterns = patterns('',
Jason D Yeomans's avatar
Jason D Yeomans committed
10

Jason D Yeomans's avatar
Jason D Yeomans committed
11
    url(r'', include('allauth.urls')),
12

Daniel W Bond's avatar
Daniel W Bond committed
13 14
    url(r'^majors/$', ListMajors.as_view(), name='list_majors'),

15
    url(r'^student/(?P<slug>[\w-]+)/$',
16
        DetailStudent.as_view(), name='detail_student'),
Daniel W Bond's avatar
Daniel W Bond committed
17

18
    url(r'^student/$',
19
        DetailCurrentStudent.as_view(), name='detailCurrentStudent'),
20

21
    url(r'^student/(?P<slug>[\w-]+)/welcome/$',
22
        UpdateStudent.as_view(), name='updateStudent'),
23

24
    url(r'^(?P<slug>[\w-]+)/major/$',
25
        UpdateStudentMajor.as_view(), name='updateStudentMajor'),
26

27
    url(r'^settings/$',
28 29
        DetailCurrentStudentSettings.as_view(), name='currentStudentSettings'),

Jason D Yeomans's avatar
Jason D Yeomans committed
30
)