I added a pip package to my virtual environment, after which I'm getting this error:
2025-01-19 17:18:23 ERROR:root:Error running WSGI application
2025-01-19 17:18:23 ERROR:root:NameError: name 'db' is not defined
2025-01-19 17:18:23 ERROR:root: File "/var/www/ghdev_pythonanywhere_com_wsgi.py", line 21, in <module>
2025-01-19 17:18:23 ERROR:root: from gluon.main import wsgibase as application
2025-01-19 17:18:23 ERROR:root:
2025-01-19 17:18:23 ERROR:root: File "/home/ghdev/web2py/gluon/main.py", line 113, in <module>
2025-01-19 17:18:23 ERROR:root: load_routes()
2025-01-19 17:18:23 ERROR:root:
2025-01-19 17:18:23 ERROR:root: File "/home/ghdev/web2py/gluon/rewrite.py", line 384, in load
2025-01-19 17:18:23 ERROR:root: exec(data, symbols)
2025-01-19 17:18:23 ERROR:root:
2025-01-19 17:18:23 ERROR:root: File "<string>", line 2, in <module>
as a result, I can't even reach the web2py admin login screen or any other functionality, except the Pythonanywhere dashboard screens. All of the code worked before the pip install.
Urgently need help. Thanks.