1 2 3 4 5
from django.urls import re_path urlpatterns = [ re_path("^$", lambda x: x, name="name_with:colon"), ]