Next steps in reset/level set - CHATGPT Question
Retrieved the Flask_app.py code snippet for the "Question" to CHATGPT from a backup I saved in Pythonanywhere - sometime in the spring.
I commented out much of the code to simplify and see what happens.
After Commenting out - I get an "Internal Server Error". This belongs to the "Question.html" and Flask_app.py shared elements. I may need to gut more code from both sides.
The Error log reported the following:
2024-08-05 02:45:28,366: Exception on /Question [GET]
Traceback (most recent call last):
File "/home/BenConnolly/.local/lib/python3.10/site-packages/flask/app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "/home/BenConnolly/.local/lib/python3.10/site-packages/flask/app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/BenConnolly/.local/lib/python3.10/site-packages/flask/app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "/home/BenConnolly/.local/lib/python3.10/site-packages/flask/app.py", line 1499, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/BenConnolly/mysite/flask_app.py", line 49, in Question
if request.method == "POST":
NameError: name 'request' is not defined
Comments
Post a Comment