I\'m developing a django application and over time, the URLs have grown. I have a lot of them with me now and due to some change I made, one view started to malfunction. When I
You can assume, that it goes through the urlpatterns from top to bottom and the first one that matches will be executed.
As you know which view is executed (Y
) think about that:
Y
is before X
: the patterns of Y matches the url (but shouldn't)X
is before Y
: the patterns of X doesn't match the url (but should)Can you provide some more explicit examples of your URLConf? Than I can give you a more explicit answer.