Yep, another one of those... ;)
So, I'm starting over on the FlaskTaskr blog tutorial from RealPython.com... trying to figure out how to make it work on pythonanywhere.com
I've pushed the code so far (pg 135) to my github repo, so if anyone wants to look at the files and tell me what I messed up, feel free.
I'm guessing its either in the pythonanywhere.com wsgi.py config file:
import os
import sys
path = '/home/memilanuk/mysite/flasktaskr2/project/'
if path not in sys.path:
sys.path.append(path)
from views import app as application
I'm using a virtualenv as described in the PA wiki, which is installed at /home/memilanuk/.virtualenvs/flasktaskr2/
.
I've looked at the PA wiki page for Flask as well, and I'm still not sure I have things setup right in the wsgi.py file. I've tried both run.py
with if __name__ == "__main__":
to keep app.run()
from interfering with the pythonanywhere wsgi server, and just calling the app file views.py
directly as shown in the code example above.
Any assistance would be greatly appreciated.
Monte