November 2014
Intermediate to advanced
258 pages
5h 15m
English
Flask provides yet another way of configuration where we can efficiently manage deployment-specific parts. Instance folders allow us to segregate deployment-specific files from our version-controlled application. We know that configuration files can be separate for different deployment environments such as development and production, but there are many more files such as database files, session files, cache files, and other runtime files. So, we can say that an instance folder is like a holder bin for these kinds of files.
By default, the instance folder is picked up from the application automatically if we have a folder named instance in our application at the application level:
my_app/ ...
Read now
Unlock full access