from django.urls import path, re_path from . import views import GestionLogin.views from GestionLogin.views import ProfilView, ListProfilView, SessionView, LoginView, SubscribeView, NewPasswordView, ResetPasswordView urlpatterns = [ re_path(r'^csrf$', GestionLogin.views.csrf, name='csrf'), re_path(r'^login$', LoginView.as_view(), name="login"), re_path(r'^subscribe$', SubscribeView.as_view(), name='subscribe'), re_path(r'^newPassword$', NewPasswordView.as_view(), name='newPassword'), re_path(r'^resetPassword/([a-zA-Z]+)$', ResetPasswordView.as_view(), name='resetPassword'), re_path(r'^infoSession$', GestionLogin.views.infoSession, name='infoSession'), re_path(r'^profils$', ListProfilView.as_view(), name="profil"), re_path(r'^profil$', ProfilView.as_view(), name="profil"), re_path(r'^profil/([0-9]+)$', ProfilView.as_view(), name="profil"), # Test SESSION VIEW re_path(r'^session$', SessionView.as_view(), name="session"), ]