from django.contrib.auth.decorators import login_required from django.urls import path from django.utils.text import gettext_lazy as _ from web.views.users import ( login, logout, my_account, register, reset_password, reset_password_confirm, reset_password_email_sent, ) app_name = 'webusers' urlpatterns = [ # users path(_('login/'), login, name='login'), path(_('logout/'), logout, name='logout'), path(_('register/'), register, name='register'), path(_('reset-password/'), reset_password, name='reset_password'), path(_('reset-password///'), reset_password_confirm, name='reset_password_confirm'), path(_('reset-password/email-sent/'), reset_password_email_sent, name='reset_password_email_sent'), path(_('my-account/'), login_required(my_account, login_url=_('/login/')), name='my_account'), ]