diff --git a/src/phonebook/urls.py b/src/phonebook/urls.py index cfe8c4a9..005b84f9 100644 --- a/src/phonebook/urls.py +++ b/src/phonebook/urls.py @@ -1,4 +1,4 @@ -from django.urls import include, path +from django.urls import include, path, re_path from .views import ( DectExportView, @@ -25,8 +25,8 @@ urlpatterns = [ DectRegistrationCreateView.as_view(), name="dectregistration_create", ), - path( - "/", + re_path( + r"^(?P\d{4})/", include( [ path(