From 8d4a227509b65d7615cfe578ea532714a6fd5b7b Mon Sep 17 00:00:00 2001 From: mjaworski Date: Mon, 13 Apr 2015 15:04:14 +0200 Subject: [PATCH] Added simple redirect to fix #66 --- demo/demo/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/demo/urls.py b/demo/demo/urls.py index 1eb8778..b2d7676 100644 --- a/demo/demo/urls.py +++ b/demo/demo/urls.py @@ -1,6 +1,6 @@ from django.conf.urls import patterns, include, url from django.contrib import admin -from django.views.generic import TemplateView +from django.views.generic import TemplateView, RedirectView urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'), @@ -35,4 +35,5 @@ urlpatterns = patterns('', url(r'^rest-auth/registration/', include('rest_auth.registration.urls')), url(r'^account/', include('allauth.urls')), url(r'^admin/', include(admin.site.urls)), + url(r'^accounts/profile/$', RedirectView.as_view(url='/'), name='profile-redirect'), )