Forums

configuring pythonanywhere_com_wsgi.py

Hi! have a simple app with 3 pages in plain python located in home/me/site:

db.py
db2.py
db3.py

I modify the HELLO_WORLD variable in

../me_pythonanywhere_com_wsgi.py

to show a small menu with the anchor to the 3 above files but I cannot reach such pages:

can pls suggest how shall I configure https://www.pythonanywhere.com/user/me/files/var/www/me_pythonanywhere_com_wsgi.py

in way to make it work?

Thanks!

It looks like you're trying to run your code in some sort of CGI-like way. That will not work on PythonAnywhere. You can use a framework like Flask, Bottle or Django to run your code - that would require some recoding to get whatever you have in those files to work in the framework you choose.