from . import views from django.urls import path, re_path urlpatterns = [ # use re_path for regex (.*) - this regex accepts anything - see https://docs.python.org/3/library/re.html for more path('', views.home, name=''), re_path('(?P.*)/$', views.home, name='textwiedergabe') ]