Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
d8ae30f0
Commit
d8ae30f0
authored
Sep 07, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added url scheming for welcome pages
parent
1d4e8666
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
roomlist/accounts/urls.py
roomlist/accounts/urls.py
+25
-8
No files found.
roomlist/accounts/urls.py
View file @
d8ae30f0
...
...
@@ -2,8 +2,8 @@
from
django.conf.urls
import
patterns
,
include
,
url
# imports from your apps
from
.views
import
DetailStudent
,
UpdateStudent
,
DetailStudentSettings
,
\
DetailCurrentStudent
,
DetailCurrentStudentSettings
,
UpdateStudentMajor
,
\
ListMajors
,
DetailMajor
DetailCurrentStudent
,
DetailCurrentStudentSettings
,
ListMajors
,
\
DetailMajor
,
WelcomeName
,
WelcomePrivacy
,
WelcomeMajor
,
WelcomeSocial
urlpatterns
=
patterns
(
''
,
...
...
@@ -21,13 +21,30 @@ urlpatterns = patterns('',
url
(
r
'^student/$'
,
DetailCurrentStudent
.
as_view
(),
name
=
'detailCurrentStudent'
),
url
(
r
'^student/(?P<slug>[\w-]+)/welcome/$'
,
UpdateStudent
.
as_view
(),
name
=
'updateStudent'
),
url
(
r
'^(?P<slug>[\w-]+)/major/$'
,
UpdateStudentMajor
.
as_view
(),
name
=
'updateStudentMajor'
),
url
(
r
'^settings/$'
,
DetailCurrentStudentSettings
.
as_view
(),
name
=
'currentStudentSettings'
),
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'
),
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment