django-urls-5

Last Updated :
Discuss
Comments

When a request arrives, how does Django’s URL dispatcher decide which view to call?

It randomly picks a view

It uses the view name to search for a pattern

It requires the client to specify the view explicitly

It checks URL patterns in the order defined and calls the view tied to the first match

Tags:
Share your thoughts in the comments