Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
315329d4
Commit
315329d4
authored
Feb 01, 2016
by
Daniel W Bond
Browse files
moved relevant urls from accounts to welcome, urls now without username slugs
parent
fe8a0067
Changes
2
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/urls.py
View file @
315329d4
...
...
@@ -5,8 +5,7 @@ from django.conf.urls import patterns, include, url
# imports from your apps
from
.views
import
(
DetailStudent
,
UpdateStudent
,
DetailStudentSettings
,
DetailCurrentStudent
,
DetailCurrentStudentSettings
,
ListMajors
,
DetailMajor
,
WelcomeName
,
WelcomePrivacy
,
WelcomeMajor
,
WelcomeSocial
,
CreateConfirmation
,
DeleteConfirmation
)
DetailMajor
,
CreateConfirmation
,
DeleteConfirmation
)
from
.adapter
import
RemoveSocialConfirmationView
...
...
@@ -48,25 +47,4 @@ urlpatterns = patterns('',
# delete
url
(
r
'^student/(?P<student_slug>[\w-]+)/flag/(?P<slug>[\w-]+)/$'
,
DeleteConfirmation
.
as_view
(),
name
=
'deleteConfirmation'
),
# first welcome page
# let's verify your name and optionally select a gender
url
(
r
'^welcome/(?P<slug>[\w-]+)/1/$'
,
WelcomeName
.
as_view
(),
name
=
'welcomeName'
),
# second welcome page
# let's set your room and privacy
url
(
r
'^welcome/(?P<slug>[\w-]+)/2/$'
,
WelcomePrivacy
.
as_view
(),
name
=
'welcomePrivacy'
),
# third welcome page
# let's verify your major
url
(
r
'^welcome/(?P<slug>[\w-]+)/3/$'
,
WelcomeMajor
.
as_view
(),
name
=
'welcomeMajor'
),
# fourth welcome page
# set your social media links
url
(
r
'^welcome/(?P<slug>[\w-]+)/4/$'
,
WelcomeSocial
.
as_view
(),
name
=
'welcomeSocial'
),
)
roomlist/welcome/urls.py
0 → 100644
View file @
315329d4
# standard library imports
from
__future__
import
absolute_import
,
print_function
# core django imports
from
django.conf.urls
import
patterns
,
include
,
url
# imports from your apps
from
.views
import
WelcomeName
,
WelcomePrivacy
,
WelcomeMajor
,
WelcomeSocial
urlpatterns
=
patterns
(
''
,
# first welcome page
# let's verify your name and optionally select a gender
url
(
r
'^$'
,
WelcomeName
.
as_view
(),
name
=
'welcomeName'
),
# second welcome page
# let's set your room and privacy
url
(
r
'^2/$'
,
WelcomePrivacy
.
as_view
(),
name
=
'welcomePrivacy'
),
# third welcome page
# let's verify your major
url
(
r
'^3/$'
,
WelcomeMajor
.
as_view
(),
name
=
'welcomeMajor'
),
# fourth welcome page
# set your social media links
url
(
r
'^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