the following code is not saving to the db, the code works well in shell. everything is fine but not saving to db.could someone figure it out?
def loginapp(request):
if request.method == "POST":
form=LoginInterfaceForm(request.POST)
if form.is_valid():
form.clean()
login = form.save(commit=False)
login.save(
expecting the form data to save in db