Commit 5a083ac6 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

redirect /majors/ to /accounts/majors/

parent 168eef3f
......@@ -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'),
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