urls.py 459 B

123456789101112
  1. from django.contrib.auth.views import LogoutView
  2. from django.urls import path
  3. from .views import *
  4. urlpatterns = [
  5. path('', Index.as_view(), name='index'),
  6. path('service', AllService.as_view(), name='all'),
  7. path('register', Registration.as_view(), name='registration'),
  8. path('login', LoginView.as_view(), name='login'),
  9. path('logout', LogoutView.as_view(), name='logout'),
  10. path('profile/<int:pk>', Profile.as_view(), name='profile')
  11. ]