Using Form In Django - Get() Missing 1 Required Positional Argument: 'header'
currently working in Django and trying to do a simple tutorial on forms, but I am receiving an error when the form is submitted. Here is my urls.py: from .views import* urlpatterns
Solution 1:
You need to tell where to redirect after successful form submission. You are only doing return HttpResponseRedirect
which is not valid, instead it should be:
return HttpResponseRedirect(the_path_to_redirect_to)
Please read documentation about HttpResponseRedirect.
Post a Comment for "Using Form In Django - Get() Missing 1 Required Positional Argument: 'header'"