File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,29 @@ create a new clone of it manually or using the Dashboard.
348348
349349Here is the tree structure of the ``_scaffold `` app:
350350
351- .. image :: images/scaffold_tree.png
351+ ::
352+
353+ ├── __init__.py # imports everything else
354+ ├── common.py # defines useful objects
355+ ├── controllers.py # your actions
356+ ├── databases # your sqlite databases and metadata
357+ ├── models.py # your pyDAL table model
358+ ├── settings.py # any settings used by the app
359+ ├── settings_private.py # (optional) settings that you want to keep private
360+ ├── static # static files
361+ │ ├── css # CSS files, we ship bulma because it is JS agnostic
362+ │ │ └── no.css # we used bulma.css in the past
363+ │ ├── favicon.ico
364+ │ └── js # JS files, we ship with these but you can replace them
365+ │ └── utils.js
366+ ├── tasks.py
367+ ├── templates # your templates go here
368+ │ ├── auth.html # the auth page for register/logic/etc (uses vue)
369+ │ ├── generic.html # a general purpose template
370+ │ ├── index.html
371+ │ └── layout.html # a bulma layout example
372+ └── translations # internationalization/pluralization files go here
373+ └── it.json # py4web internationalization/pluralization files are in JSON, this is an italian example
352374
353375The scaffold app contains an example of a more complex action:
354376
You can’t perform that action at this time.
0 commit comments