Skip to content

Commit 8b356c0

Browse files
committed
removed scaffold_tree.png and restored more detailed description. Thanks Nico
1 parent 3e1ab5b commit 8b356c0

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

docs/chapter-05.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,29 @@ create a new clone of it manually or using the Dashboard.
348348

349349
Here 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

353375
The scaffold app contains an example of a more complex action:
354376

docs/images/scaffold_tree.png

-23.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)