Added simple redirect to fix #66

This commit is contained in:
mjaworski 2015-04-13 15:04:14 +02:00
parent 0a98594a11
commit 8d4a227509

View File

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