mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
Added simple redirect to fix #66
This commit is contained in:
parent
0a98594a11
commit
8d4a227509
|
@ -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'),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user