Application initialization and app-specific registrations.
There is your main app instance, created by AppFactory.
Note
Note, it’s just a point for blueprints, context processors and extensions binding.
But don’t bind them explicit, as usual. And don’t bind any views to the main app.
Why?
You have at least two apps in your project – one as the basic app and one for testing.
Each of them is created at runtime with some individual settings for database, debug level etc.
And each of them has to have access to any views or extensions with their individual settings.
So dynamical application binding is much more flexible solution.
copyright: | (c) 2012 by Roman Semirook. |
---|---|
license: | BSD, see LICENSE for more details. |
The Flask application object
Stylesheet assets bundle
Javascript assets bundle