urls.py 387 B

123456789101112
  1. from django.urls import path
  2. from . import views
  3. app_name = 'userprofile'
  4. urlpatterns = [
  5. path('login/', views.user_login, name='login'),
  6. path('logout/', views.user_logout, name='logout'),
  7. path('register/', views.user_register, name='register'),
  8. path('delete/<int:id>/', views.user_delete, name='delete'),
  9. path('edit/<int:id>/', views.profile_edit, name='edit'),
  10. ]