i have used same code for forms in previous apps but this time it doesnt seem to work, migrations have been done and i have been at this for a day and cant find a good solution of why this form isnt working.
def gst_form(request):
if request.method == 'POST':
form = gst_form(request.POST)
if form.is_valid():
form.save()
return redirect("/")
else:
return HttpResponse("Details Invalid")
else:
form = gst_form()
context= {'form':form}
return render(request, 'main/form.html', context)