[Answered ]-Django urls space gets added after main url

2đź‘Ť

âś…

There is no space, that’s just how Django prints the URLs.

The problem has nothing to do with spaces, but with your URL. “duplicate_check” is included under person/, but you are trying to access p_check/….

Edit There are actually bigger problems with your URL pattern. You haven’t actually given the capturing groups anything to capture. You need some kind of pattern inside the parentheses. Something like:

r'^duplicate_check/(?P<entity>\w+)/(?P<full_name>\w+)/?$'

which will capture all alphanumeric characters for entity and full_name.

Leave a comment