Commit bc535e62 authored by David Seaward's avatar David Seaward

redirect `accounts/$` to root

parent c6528046
......@@ -17,13 +17,14 @@ from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import RedirectView
from registration.backends.simple.views import RegistrationView
import ldapregister.views
import ldapregister.views
from ldapregister.forms import RegistrationForm
urlpatterns = [
url(r'^$', ldapregister.views.home_page, name='home_page'),
url(r'^accounts/$', RedirectView.as_view(url='/')),
url(r'^accounts/profile/$', RedirectView.as_view(url='/')),
url(r'^accounts/register/$', RegistrationView.as_view(form_class=RegistrationForm), name='registration_register'),
url(r'^accounts/', include('registration.backends.simple.urls')),
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment