different number of arguments different names of the keyword arguments different path converters different regular expressions converter tourl raises valueerror no match different number of arguments different names of the keyword arguments different path converters different regular expressions converter to_url raises valueerror no match
from django.urls import path, re_path, register_converter

from . import converters, views

register_converter(converters.DynamicConverter, "to_url_value_error")

urlpatterns = [
    
    path("number_of_args/0/", views.empty_view, name="number_of_args"),
    path("number_of_args/1/<value>/", views.empty_view, name="number_of_args"),
    
    path("kwargs_names/a/<a>/", views.empty_view, name="kwargs_names"),
    path("kwargs_names/b/<b>/", views.empty_view, name="kwargs_names"),
    
    path("converter/path/<path:value>/", views.empty_view, name="converter"),
    path("converter/str/<str:value>/", views.empty_view, name="converter"),
    path("converter/slug/<slug:value>/", views.empty_view, name="converter"),
    path("converter/int/<int:value>/", views.empty_view, name="converter"),
    path("converter/uuid/<uuid:value>/", views.empty_view, name="converter"),
    
    re_path(r"^regex/uppercase/([A-Z]+)/", views.empty_view, name="regex"),
    re_path(r"^regex/lowercase/([a-z]+)/", views.empty_view, name="regex"),
    
    path(
        "converter_to_url/int/<value>/",
        views.empty_view,
        name="converter_to_url",
    ),
    path(
        "converter_to_url/tiny_int/<to_url_value_error:value>/",
        views.empty_view,
        name="converter_to_url",
    ),
]