2
Since your form is submitting to the same url, you can simply use action=""
. If you prefer, you can use action="/surveyone/"
If you don’t want to hardcode the url in your template, then you need to name your url patterns:
url(r'^surveyone/$', SurveyWizardOne.as_view([
SurveyFormIT1,
SurveyFormH,
...
]), name="survey_one"),
You can then use the url tag in your template:
action="{% url 'survey_one' %}"
Source:stackexchange.com