And in about/urls.py:
re_path(route=r'', view=views.AboutView.as_view(), name='about'),
The view handles the redirect if necessary.
Now, I changed urls.py to:
path(route='about/', view=include('speedy.core.about.urls', namespace='about')),And about/urls.py to:
path(route='<path:rest>', view=views.AboutView.as_view(), name='about'),
But, if the user enters /about/1/, he is redirected to /about/, but then I receive error 404. What is the problem and how should I define it? I prefer not to have to use <path:rest> but catch any url which starts with /about/ .
Thanks,
Uri.
אורי