Reputation: 1106
I have problem with these URLs
(r'^(?P<jobtype>[\w|\W]+)/$', 'index'),
(r'^profile/$','profile'),
(r'^profile/addJob/$', 'addJob'),
(r'^profile/editjob/(?P<jobid>.*)/$', 'editJob')
The first pass to "index" function, second will pass to "profile" function, the third and fourth should pass to "addJob" and "editJob" function, but they both use the first url-configuration and pass to "index" function, which give me errors, what should I do in this case?
Upvotes: 0
Views: 56
Reputation: 962
the first regex have already matched all urls.
(r'^profile/$','profile'),
(r'^profile/addJob/$', 'addJob'),
(r'^profile/editjob/(?P<jobid>.*)/$', 'editJob')
(r'^(?P<jobtype>[\w|\W]+)/$', 'index'),
Upvotes: 1