urls.py 398 B

123456789101112
  1. from django.urls import path, include
  2. from django.views.generic.base import TemplateView
  3. from . import views
  4. urlpatterns = [
  5. path("add/", views.add_friend),
  6. path("get_requests/", views.get_friend_request),
  7. path("friends_list/", views.friends_list),
  8. # path("detail/<int:pk>", views.friendDetail),
  9. path("delete/", views.delete_friend),
  10. path("accept/", views.accept_friend)
  11. ]