Commit 7aa11ad4 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

redirect /welcome/ to /welcome/1/

parent 937f1f1f
......@@ -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/$',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment