Similar Django url patterns matches wrong one
It might be a regex issue or rule I'm not familiar with but I essentially have these 2 urls
(r'quote', quote), (r'email/quote/$', sendQuote),
But when I go to mydomain.com/email/quote it keeps getting caught by the first one. Is there something I'm doing wrong?
You need to specify the start of the regex using the ^ character. Similar to how $ specifies that it's the end of the regex, ^ will say that it's the start.
(r'^quote/$', quote), (r'^email/quote/$', sendQuote),