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.
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
- [Answered ]-Django in VS2015
- [Answered ]-Installing a Stored Procedure or Function with Django syncdb
- [Answered ]-Can't set expire header on images with Apache
- [Answered ]-What is safe implementation for sensitive data file file_url in Django
Source:stackexchange.com