I want to associate a REST API end point to two urls, "manager" and "manager/". So I added two path entries in the urlpatterns with these urls. But it seems something that can be handled with some kind of configuration. Is there such a configuration with django?
thanks

I admit I won't answer this directly but let's figure out first what happens with and without the forward slash. I'll defer to
https://www.thoughtco.com/urls-ending-with-slash-3466509

OK, that's a good clue how you might handle this. Since no slash forces a redirect, that's my clue to see how Django redirects. For that you have to scour your Django docs. Like this one: https://docs.djangoproject.com/en/2.0/ref/contrib/redirects/
Read until it sinks in. To me that's where your magic has to happen.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.