path_urls.py 830 B

1234567891011121314151617
  1. from django.conf.urls import include
  2. from django.urls import path, re_path
  3. from . import views
  4. urlpatterns = [
  5. path('articles/2003/', views.empty_view, name='articles-2003'),
  6. path('articles/<int:year>/', views.empty_view, name='articles-year'),
  7. path('articles/<int:year>/<int:month>/', views.empty_view, name='articles-year-month'),
  8. path('articles/<int:year>/<int:month>/<int:day>/', views.empty_view, name='articles-year-month-day'),
  9. path('users/', views.empty_view, name='users'),
  10. path('users/<id>/', views.empty_view, name='user-with-id'),
  11. path('included_urls/', include('urlpatterns.included_urls')),
  12. re_path(r'^regex/(?P<pk>[0-9]+)/$', views.empty_view, name='regex'),
  13. path('', include('urlpatterns.more_urls')),
  14. path('<lang>/<path:url>/', views.empty_view, name='lang-and-path'),
  15. ]