The easiest way is to use ModelForm to create a form based on your model. A call form.save()in this form will automatically save your data in a database.
If you created your form manually, you will have to manually fill out the model instance and then call .save()on the model instance.
source
share