I am trying to deploy a website on pythonanywhere. I've run into a bunch of issues, but right now, all I want to do is go to the basic site (faroop.pythonanywhere.com) and see that the hello world is running. But it isn't there (it's just the coming soon page). I have the wsgi file set up with
# add your project directory to the sys.path
project_home = u'/home/faroop/trolltrackrapp'
if project_home not in sys.path:
sys.path = [project_home] + sys.path
# import flask app but need to call it "application" for WSGI to work
from flask_app import app as application
in my directory trolltrackrapp I have the file flask_app.py which contains
# import the Flask class from the flask module
from flask import Flask
# create the application object
app = Flask(__name__)
# use decorators to link the function to a url
@app.route('/')
def home():
return "Hello, World!" # return a string
I can't figure out what could be going wrong...
I am also having trouble getting a CNAME setup with my website name (www.trolltrackr.com on namecheap), but I thought I'd try to bang on this for a while in case that is just taking an extra long time.