2👍
✅
Change your urls.py to:
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^learning_objective/$', LearningObjectiveView.as_view(), name = 'learning_objective'),
url(r'^learning_objective_add/$', CreateLearningObjective.as_view(), name = 'learning_objective_add'),
)
The error is that your second url (‘^learning_objective’) intercepts the post request to the third url. This is why you should add $
at the end of regex.
And /
slash is also required for POST
views because of APPEND_SLASH
setting.
Source:stackexchange.com