name_with_colon.py 150 Bytes
from django.conf.urls import include, url

urlpatterns = [
    url('^', include([
        url(r'^$', lambda x: x, name='name_with:colon'),
    ])),
]