Forums

file structure

I have developed a flask app with SQLite database (SQL-alchemy). I want to know what other files I have to add to my directory to get my app deployed hassle-free.

This is my current file structure: static templates app.py models.py data virtual_env requirement.txt

With Flask, it really depends very much on how you've structured your code -- unlike Django, which enforces a strict set of rules on what files go where, with Flask anything can really be anywhere.

For more general Flask deployment stuff, you might find this help page useful -- and also, if you're using SQLite, you will need to use an absolute path when connecting to it -- see this help page for more information.