PonyConf/accounts/urls.py
Élie Bouttier ef07664dee Maintenance update
* Upgrade to django 3.1
* Upgrade dependencies
* Remove django-bower
* Add favicon
* Fix bugs from unit tests
2020-08-09 16:24:42 +02:00

13 lines
519 B
Python

from django.conf import settings
from django.urls import include, path
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
path('profile/', views.profile, name='profile'),
path('accounts/login/', views.EmailLoginView.as_view(), {'extra_context': {'buttons': [views.RESET_PASSWORD_BUTTON]}}, name='login'),
path('logout/', auth_views.LogoutView.as_view(), {'next_page': settings.LOGOUT_REDIRECT_URL}, name='logout'),
path('', include('django.contrib.auth.urls')),
]