Forums

Trouble deploying Flask app to PA

hey all. I'm new to using PythonAnywhere, so this may be a noob question, but I'm having trouble getting my Flask app off the ground. to get the files in my PA account, I:

  1. uploaded a zip file containing my app, 'dbwflax.zip'
  2. opened a Bash shell, unzipped that zip as it says in the "getting code in and out" faq

so, it looks like my code is all there and in folders like I had it set up, etc. but when I go to my page (http://ntucker1.pythonanywhere.com/) it just shows "Hello from Flask!". How can I make it show what should be my app? again, sorry for such a newbie question.

Check out the WSGI file (linked from the "Web" tab). There's code in there that sets up the system path, and specifies which module defines the Flask application (it imports with a line like "from flask_app import app as application"). It should be pretty clear what to change, but if it's not, just post again here and we'll be able to help out.