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
5a083ac6
Commit
5a083ac6
authored
Sep 17, 2016
by
Daniel W Bond
Browse files
redirect /majors/ to /accounts/majors/
parent
168eef3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/settings/urls.py
View file @
5a083ac6
...
...
@@ -5,6 +5,7 @@ from django.conf.urls import patterns, include, url
from
django.contrib.auth.decorators
import
login_required
from
django.views.generic
import
TemplateView
from
django.contrib
import
admin
from
django.views.generic
import
RedirectView
# imports from your apps
from
.views
import
HomePageView
from
haystack.views
import
SearchView
...
...
@@ -30,6 +31,9 @@ urlpatterns = patterns('',
# search
url
(
r
'^search/'
,
login_required
(
SearchView
(),
login_url
=
'login'
),
name
=
'search'
),
# redirects
url
(
r
'^majors/'
,
RedirectView
.
as_view
(
pattern_name
=
'list_majors'
)),
# login and logout
url
(
r
'^login/'
,
'accounts.views.custom_cas_login'
,
name
=
'login'
),
url
(
r
'^logout/'
,
'cas.views.logout'
,
name
=
'logout'
),
...
...
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