Skip to content
Snippets Groups Projects
Commit 12010c45 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Redirecting from accounts/profile/ to accounts/ to follow tests and former behavior

parent 1f17688c
No related branches found
No related tags found
No related merge requests found
Pipeline #11931 passed
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from django.urls import reverse_lazy
from django.views.generic import RedirectView
from basetheme_bootstrap import views
......@@ -9,7 +10,8 @@ urlpatterns = [
################################################################################
# Account management
################################################################################
url(r'^accounts/profile/$', views.account_detail, name='account'),
url(r'^accounts/$', views.account_detail, name='account'),
url(r'^accounts/profile/$', RedirectView.as_view(url=reverse_lazy('basetheme_bootstrap:account'))),
url(r'^accounts/login/$', auth_views.LoginView.as_view(), name='login'),
url(r'^accounts/logout/$', auth_views.LogoutView.as_view(next_page='/'), name='logout'),
url(r'^accounts/password/$', views.change_password, name='change_password'),
......
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.1.0',
version='0.1.1',
description='Django Basetheme Bootstrap',
long_description=readme,
author='Bryan Brancotte',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment