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
7aa11ad4
Commit
7aa11ad4
authored
Feb 02, 2016
by
Daniel W Bond
Browse files
redirect /welcome/ to /welcome/1/
parent
937f1f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/welcome/urls.py
View file @
7aa11ad4
...
...
@@ -2,6 +2,8 @@
from
__future__
import
absolute_import
,
print_function
# core django imports
from
django.conf.urls
import
patterns
,
include
,
url
from
django.views.generic
import
RedirectView
from
django.core.urlresolvers
import
reverse_lazy
# imports from your apps
from
.views
import
WelcomeName
,
WelcomePrivacy
,
WelcomeMajor
,
WelcomeSocial
...
...
@@ -10,9 +12,13 @@ urlpatterns = patterns('',
# first welcome page
# let's verify your name and optionally select a gender
url
(
r
'^$'
,
url
(
r
'^
1/
$'
,
WelcomeName
.
as_view
(),
name
=
'welcomeName'
),
# thought it made sense to redirect without the number
url
(
r
'^$'
,
RedirectView
.
as_view
(
url
=
reverse_lazy
(
'welcomeName'
),
permanent
=
True
)),
# second welcome page
# let's set your room and privacy
url
(
r
'^2/$'
,
...
...
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