from django.urls import path urlpatterns = [ path(r"(?P\d+)", lambda x: x), ]