We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a98594 commit 8d4a227Copy full SHA for 8d4a227
demo/demo/urls.py
@@ -1,6 +1,6 @@
1
from django.conf.urls import patterns, include, url
2
from django.contrib import admin
3
-from django.views.generic import TemplateView
+from django.views.generic import TemplateView, RedirectView
4
5
urlpatterns = patterns('',
6
url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'),
@@ -35,4 +35,5 @@
35
url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),
36
url(r'^account/', include('allauth.urls')),
37
url(r'^admin/', include(admin.site.urls)),
38
+ url(r'^accounts/profile/$', RedirectView.as_view(url='/'), name='profile-redirect'),
39
)
0 commit comments