Updated Large app how to (markdown)
parent
ad42cf9c90
commit
9929b96b13
1 changed files with 10 additions and 4 deletions
|
|
@ -36,6 +36,7 @@ Ok, so from now, we should have all the libs ready. Here the folder structures:
|
||||||
app.db
|
app.db
|
||||||
app/__init__.py
|
app/__init__.py
|
||||||
app/constants.py
|
app/constants.py
|
||||||
|
app/static
|
||||||
|
|
||||||
For every module (or sub app... ) well have this file structure (here for the users module)
|
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/constants.py
|
||||||
app/users/models.py
|
app/users/models.py
|
||||||
app/users/decorators.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/login.html
|
||||||
app/templates/users/register.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
|
## Config
|
||||||
`run.py` will be used to launch the web server.
|
`run.py` will be used to launch the web server.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue