[Answered ]-URLs not working

2👍

Django URL patterns are processed in order. It looks like your /accounts/profile/newContracts/ URL is matching your r'^accounts/profile/(?P<contract>[^/]+)/$' pattern.

Try moving your r'^accounts/profile/newContract$' pattern higher up. (and fix the missing ‘s’ typo)

But more importantly, make sure you have a URL scheme that’s not ambiguous.

👤payne

0👍

(r’^accounts/profile/newContract$’
newContract – Without s.
And you go to the /accounts/profile/newContracts . With s at end
And if you to newContracts it will matcht this url :
(r’^accounts/profile/(?P[^/]+)/$’, ‘contractManagement.contracts.views.viewContract’),
And will look for newContracts

Leave a comment