I created a small Python web application using Flask, and I wanted to put it in the alwaysdata.net file. I already installed mod_wsgi in my subdomain, but when I try to import the main module of my application, it fails because it cannot be found. All files are located in the / www folder.
Should I post files elsewhere? I tried to include the current working directory in my .wsgi file, but it still does not work.
For reference, my .wsgi looks like this:
import os import sys sys.path.append(os.getcwd()) from ngl import app as application
My application is called ngl.py and it is in the same folder as the .wsgi file.
Thanks!
source share