I was referred here by StackOverflow, but the wiki page disappeared, so here is a new one.

scholarly 2014-09-13 20:53:14 -07:00
parent e4604946f6
commit 700be245fd

22
Large-app-how-to.rest Normal file

@ -0,0 +1,22 @@
"Official" Advice
-----------------
`packages <http://flask.pocoo.org/docs/0.10/patterns/packages/>`_
`blueprints <http://flask.pocoo.org/docs/0.10/blueprints/>`_
How does Django do it?
----------------------
::
INSTALLED_APPS = (
)
Django avoids the circular import by using a different routing system (non-decorator). I (Terrel Shumway) actually like this better: The code is not cluttered by stuff that can change easily (routing). My sense is that Blueprints may take care of this in Flask, but I am too new to say anything definite.
Other Answers
-------------
* https://www.digitalocean.com/community/tutorials/how-to-structure-large-flask-applications
* http://mattupstate.com/python/2013/06/26/how-i-structure-my-flask-applications.html
* https://github.com/mattupstate/overholt