View didn't return an HttpResponse object. It returned None instead

前端 未结 3 866
轻奢々
轻奢々 2021-01-21 09:22

The view below is gives me the error when using the POST method. I\'m trying to load the model data into a form, allow the user to edit, and then update the database. When I try

3条回答
  •  灰色年华
    2021-01-21 09:59

    your error to the indentation of a Python file. You have to be careful when following tutorials and/or copy-pasting code. Incorrect indentation can waste lot of valuable time.

提交回复
热议问题