Updated Large app how to (markdown)

debrice 2012-02-02 21:32:15 -08:00
parent ad42cf9c90
commit 9929b96b13

@ -30,12 +30,13 @@ WTF (What the Form) Provides a easy way to handle user's data submission.
# Overview
Ok, so from now, we should have all the libs ready. Here the folder structures:
config.py
run.py
shell.py
config.py
run.py
shell.py
app.db
app/__init__.py
app/constants.py
app/static
For every module (or sub app... ) well have this file structure (here for the users module)
@ -45,11 +46,16 @@ For every module (or sub app... ) well have this file structure (here for the us
app/users/constants.py
app/users/models.py
app/users/decorators.py
for every module that need templating (jinja) we store those in the templates folder + module directory.
app/templates/users/login.html
app/templates/users/register.html
...
We'll create 4 modules, a user module (manage user's registration, login, password lost, profile edit and maybe Third party Login/Registration) an email sub module intended to be used by a queuing server, and a post and comments modules
for the static file, flask will automagically serve static files from this static folder. If you want to use another folder... you can read about that here: http://flask.pocoo.org/docs/api/#application-object
We'll create 4 modules, a user module (manage user's registration, login, password lost, profile edit and maybe Third party Login/Registration) an emails sub module intended to be used by a queuing server, and a posts and comments modules
## Config
`run.py` will be used to launch the web server.