Skip to content

Commit 8d4a227

Browse files
Added simple redirect to fix #66
1 parent 0a98594 commit 8d4a227

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/demo/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.conf.urls import patterns, include, url
22
from django.contrib import admin
3-
from django.views.generic import TemplateView
3+
from django.views.generic import TemplateView, RedirectView
44

55
urlpatterns = patterns('',
66
url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'),
@@ -35,4 +35,5 @@
3535
url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),
3636
url(r'^account/', include('allauth.urls')),
3737
url(r'^admin/', include(admin.site.urls)),
38+
url(r'^accounts/profile/$', RedirectView.as_view(url='/'), name='profile-redirect'),
3839
)

0 commit comments

Comments
 (0)