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'), )