urls.py 1.58 KB
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,\
5 6
    DetailCurrentStudent, DetailCurrentStudentSettings, ListMajors,\
    DetailMajor, WelcomeName, WelcomePrivacy, WelcomeMajor, WelcomeSocial
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 16 17
    url(r'^majors/(?P<slug>[\w-]+)/(?P<major>[\w-]+)/$', DetailMajor.as_view(),
        name='detail_major'),

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

21
    url(r'^student/$',
22
        DetailCurrentStudent.as_view(), name='detailCurrentStudent'),
23 24

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

27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    url(r'^student/(?P<slug>[\w-]+)/update/$',
        UpdateStudent.as_view(), name='updateStudent'),

    # first welcome page
    # let's verify your name and optionally select a gender
    url(r'^(?P<slug>[\w-]+)/welcome/1/$',
        WelcomeName.as_view(), name='welcomeName'),

    # second welcome page
    # let's set your room and privacy
    url(r'^(?P<slug>[\w-]+)/welcome/2/$',
        WelcomePrivacy.as_view(), name='welcomePrivacy'),

    # third welcome page
    # let's verify your major
    url(r'^(?P<slug>[\w-]+)/welcome/3/$',
        WelcomeMajor.as_view(), name='welcomeMajor'),

    # fourth welcome page
    # set your social media links
    url(r'^(?P<slug>[\w-]+)/welcome/4/$',
        WelcomeSocial.as_view(), name='welcomeSocial'),

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