Changes between Version 50 and Version 51 of DeveloperGuidelinesNewModule
- Timestamp:
- 11/29/13 21:37:30 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesNewModule
v50 v51 5 5 The Eden Book has a tutorial for [http://en.flossmanuals.net/sahana-eden/building-a-new-application adding a new module]. However, it is simplified from the normal way modules are included in Eden. Especially, the model file differs. 6 6 7 === Settings === 8 9 Add your module to settings.modules in {{{private/templates/<template>/config.py}}} if it is for a specific template. 10 11 Add it to {{{private/templates/default/config.py}}} to provide an example of how your module should be entered in settings.modules. 7 12 8 13 === Model === 9 14 10 15 Create a file {{{modules/s3db/<MODULE NAME>.py}}} 16 17 Add an import statement to {{{models/00_tables.py}}}: 18 {{{ 19 import s3db.<MODULE NAME> 20 }}} 11 21 12 22 Add tables to modules/s3db/<MODULE NAME>.py file, as-required for your resources.