SHARE
TWEET

Untitled

a guest Sep 19th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from django.urls import path
  2. from . import views
  3.  
  4. #app_name - Апп нейм маркер, указываем что псевдоним нужно достать именно
  5. #из этого приложения
  6. app_name = 'articles'
  7.  
  8. urlpatterns = [
  9.     path('', views.index, name='index'),
  10.     path('<int:article_id>', views.detail, name='detail'),
  11.     path('<int:article_id>/leave_comment/', views.leave_comment, name='leave_comment')
  12. ]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top