by chatee supasand » 24/07/2019 7:13 pm
ถามต่อครับ
กดแปลงไฟล์แล้วขึ้น error แบบนี้อะครับ ใน pycharm รันได้นะครับ

- im4.png (40.36 KiB) Viewed 507 times
TypeError
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.
Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 2328, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 2314, in wsgi_app
response = self.handle_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1760, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 2311, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1835, in full_dispatch_request
return self.finalize_request(rv)
File "C:\Python27\lib\site-packages\flask\app.py", line 1850, in finalize_request
response = self.make_response(rv)
File "C:\Python27\lib\site-packages\flask\app.py", line 1976, in make_response
'The view function did not return a valid response. The'
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.
ถามต่อครับ
กดแปลงไฟล์แล้วขึ้น error แบบนี้อะครับ ใน pycharm รันได้นะครับ
[attachment=0]im4.png[/attachment]
[quote]TypeError
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.
Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 2328, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 2314, in wsgi_app
response = self.handle_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1760, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 2311, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1835, in full_dispatch_request
return self.finalize_request(rv)
File "C:\Python27\lib\site-packages\flask\app.py", line 1850, in finalize_request
response = self.make_response(rv)
File "C:\Python27\lib\site-packages\flask\app.py", line 1976, in make_response
'The view function did not return a valid response. The'
TypeError: The view function did not return a valid response. The function either returned None or ended without a return statement.[/quote]