Skip to content

ValueError: The view button.view.output didn't return an HttpResponse object. It returned None instead. #1

Description

@twinklekaur

Sir,

Thank you so much for the tutorial. But I have an issue.
Went I click on the submit button the following error occures:

Internal Server Error: /output/
Traceback (most recent call last):
File "C:\Users\Dell\Envs\mywebsite\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
response = get_response(request)
File "C:\Users\Dell\Envs\mywebsite\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
"returned None instead." % (callback.module, view_name)
ValueError: The view button.view.output didn't return an HttpResponse object. It returned None instead.
[02/Jun/2019 15:16:05] "GET /output/ HTTP/1.1" 500 55771

Here is my view.py:

view.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions