Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • thanks for writing that out Mark. I actually have been keeping my Flask app in a totally different directory from my data. However my solution is to use the Frozen_Flask extension which will copy everything to the static folder before serving. Thanks! Commented Jul 22, 2012 at 15:13
  • I'm working on Linux and I had to change Static to static (case sensitivity) before it wourld work. Commented Jun 19, 2018 at 11:32
  • 1
    Adding / was key to find the image file also on an html page that depends on a temporary token. The Post command was associated with the token and not any specific page with a clear directory path. Commented Nov 23, 2021 at 15:33
  • @AlMartins this comments needs more upvotes I've spent several hours trying to figure this out! Commented Apr 4, 2024 at 16:46