1
Your URLs are mal-formed. The edit
URL will always also match against editdb
, so the other one will never be reached. Make sure you terminate them:
url(r'^submit$', views.submit, name='submit'),
url(r'^edit$', views.edit, name='edit'),
url(r'^editdb$', views.editdb, name='editdb'),
Source:stackexchange.com