Korotkodul

django перОл url.py

Jan 18th, 2022 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. from django.urls import path
  2. from . import views
  3.  
  4.  
  5.  
  6. from django.conf import settings
  7. from django.conf.urls.static import static
  8. from django.contrib import admin
  9. from django.urls import path, include
  10.  
  11. urlpatterns = [
  12. path("", views.UniversityView.as_view()),
  13. path("<int:pk>/", views.UniversityView.as_view(), name="univer_info")
  14. ]
  15.  
  16.  
Add Comment
Please, Sign In to add comment