I want to save data from a html form rather than from modelForm in django. I am using MySQL database.
create.html
<form action="QACreate/qa_create/" method="post" id="createform">
{% csrf_token %}
<label>Topic :</label>
<input type="text" name="topic"/><br /><br />
<label>Description :</label>
<textarea name="decsription"> </textarea> <br /><br />
<label>Topic type :</label>
<select>
<option value="Descriptive"> Descriptive</option>
<option value="Objective">Objective</option>
</select> <br /><br />
<label>Question :</label>
<textarea name="question"> </textarea><br /><br />
<label>Answer :</label>
<textarea name="answer"> </textarea><br /><br />
<a href="#">Add another question</a><br/><br />
<label>Tags :</label>
<input type="text" name="tags"/><br /><br />
<input type="submit" value="Submit" name="submit" />
<input type="reset" value="Reset" name="reset"/>
</form>
my topic and question are in different models.
How do i make changes in view file. Pls help Thanks in advance.