Forums

Problem getting flask to work

Have gone through step by step instructions to create web app twice but still unable to get page to be served when i go to <hostname>.pythoneverywhere.com. I should be seeing very basic webpage saying "hello world" but alas no. It may be a problem with my account not sure. Note that the <hostname>_pythonanywhere_com_wsgi.py file has an exclamation next to this line: from flask_app import app as application It says 'application' imported but unsed.

Any help much appreciated.

The warning in the WSGI file can be ignored -- it's technically correct, but the application variable is used by PythonAnywhere's internal systems.

When I go to ekulrabnud.pythonanywhere.com I see a simple Flask app saying "Hello from Flask!" -- is that what you'd expect?

Yes its working now. Thanks.

Great, thanks for confirming!