from django.urls import path, re_path from . import views urlpatterns = [ # Different number of arguments. path('number_of_args/0/', views.empty_view, name='number_of_args'), path('number_of_args/1//', views.empty_view, name='number_of_args'), # Different names of the keyword arguments. path('kwargs_names/a//', views.empty_view, name='kwargs_names'), path('kwargs_names/b//', views.empty_view, name='kwargs_names'), # Different path converters. path('converter/path//', views.empty_view, name='converter'), path('converter/str//', views.empty_view, name='converter'), path('converter/slug//', views.empty_view, name='converter'), path('converter/int//', views.empty_view, name='converter'), path('converter/uuid//', views.empty_view, name='converter'), # Different regular expressions. re_path(r'^regex/uppercase/([A-Z]+)/', views.empty_view, name='regex'), re_path(r'^regex/lowercase/([a-z]+)/', views.empty_view, name='regex'), ]