EDIT: nevermind, I found the problem: I accidentally had my code in /var/www/FlaskApp/ and not in /var/www/FlaskApp/FlaskApp/
I'm trying to do the flask application tutorial but I ran into problems: if I put the code into __init__.py as instructed (I did everything as instructed in the video and the page, twice), apache does not find it. I can get it working if I copy the python code from __init__.py into FlaskApp.py file. However, now I'm running into other problems that I think might be related: when I try to access files in the static directory like <link rel="shortcut icon" href="/static/favicon.ico"> apache complains it cannot find the .ico file. It seems it tries to search for it at actual /static/ directory, not /var/www/FlaskApp/static directory.
Also, I'm bit confused why we created the virtualenv environment in the tutorial as we are not apparently using it for anything?
kind regards
You must be logged in to post. Please login or register an account.
Great to hear you got it all figured out.
-Harrison 9 years ago
You must be logged in to post. Please login or register an account.