Flask Frustrations

Oh man, maybe ’cause I’m newer to Flask but this was a feature that I wrestled with for hours.

Turns out if you run the Flask app from not within the application directory, it won’t serve up your static assets (JS, CSS, etc.).

python app_directory/app.py

I guess you must always run it from the app directory???

cd app_directory
python app.py



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: