urls.py 826 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
    DetailCurrentStudent, DetailCurrentStudentSettings, UpdateStudentMajor
6

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

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

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

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

15
    url(r'^student/$',
16
        DetailCurrentStudent.as_view(), name='detailCurrentStudent'),
17

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

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

24
    url(r'^settings/$',
25 26
        DetailCurrentStudentSettings.as_view(), name='currentStudentSettings'),

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