Revert "I was referred here by StackOverflow, but the wiki page disappeared, so here is a new one."
This reverts commit 700be245fd05f6865e141155482c749ca1bdf986.
parent
700be245fd
commit
25a6576e76
1 changed files with 0 additions and 22 deletions
|
|
@ -1,22 +0,0 @@
|
||||||
"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
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue