from django.urls import path
from .views import register, profile
from django.contrib.auth.views import LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
    
    path('register/', register, name='register',),
    path('profile/', profile, name='profile',),
    path('login/', LoginView.as_view(template_name='users/login.html'), name='login',),
    path('logout/', LogoutView.as_view(template_name='users/logout.html'), name='logout',),
    path('password_reset/', PasswordResetView.as_view(template_name='users/password_reset.html'), name='password_reset',),
    path('password_reset/done/', PasswordResetDoneView.as_view(template_name='users/password_reset_done.html'), name='password_reset_done',),
    path('password_reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(template_name='users/password_reset_confirm.html'), name='password_reset_confirm',),
    path('password-reset-complete/', PasswordResetCompleteView.as_view(template_name='users/password_reset_complete.html'), name='password_reset_complete',),

]




if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)