Changes between Version 7 and Version 8 of DeveloperGuidelines/Templates
- Timestamp:
- 06/23/12 14:53:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Templates
v7 v8 9 9 This helps prevent merge conflicts between different deployment branches & hence reduces the risk of forking. 10 10 11 == Des ign ==11 == Description == 12 12 Configuration is done using these files: 13 * /private/templates/000_config.py14 * /private/templates/default/config.py15 * /private/templates/<template>/config.py13 * {{{/private/templates/000_config.py}}} 14 * {{{/private/templates/default/config.py}}} 15 * {{{/private/templates/<template>/config.py}}} 16 16 17 During 1st_run, 000_config.py is copied to models/17 During the 1st run, {{{000_config.py}}} is copied to {{{models/}}} 18 18 19 000_config.pyincludes:20 * FINISHED_EDITING_CONFIG_FILE21 * VERSION19 {{{000_config.py}}} includes: 20 * {{{FINISHED_EDITING_CONFIG_FILE}}} 21 * {{{VERSION}}} 22 22 * machine-specific configuration (Debug, Database, SMTP, API Keys, etc) 23 23 * a setting to define which template folder to run 24 * importing of settings from templates/<template>/config.py24 * importing of settings from {{{/private/templates/<template>/config.py}}} 25 25 * optional local overrides to the template's settings 26 26 27 27 == Prepopulate Data == 28 Prepopulate options are defined in the template's config.py (but can be overridden in the running 000_config.py): 28 An empty database isn't terribly useful - e.g. maps won't display at all. 29 30 Options for how to Prepopulate the database are defined in the template's {{{config.py}}} (but can be overridden in the running {{{000_config.py}}}): 31 * {{{settings.base.prepopulate = ["default"]}}} 29 32 * DeveloperGuidelines/PrePopulate 30 33 34 == Menus == 35 If you need to tweak your menus of build completely new ones: 36 * DeveloperGuidelines/Menus 37 31 38 == Theme == 32 DeveloperGuidelines/Themes 39 It is possible to develop a custom theme for the look & feel of your system: 40 * DeveloperGuidelines/Themes 33 41 34 === !ToDo === 35 * controllers/default.py index() 36 * Make a controller which can create arbitrary pages based on args &/or vars 37 * modules/eden/layouts.py & modules/eden/menus.py 42 == Custom Pages == 43 If you wish to add a new custom page without creating a new module: 44 * DeveloperGuidelines/CustomPages 38 45 39 46 == References == 40 47 * BluePrint/Templates 41 * PrePopulate48 * DeveloperGuidelines/PrePopulate 42 49 * BluePrint/WebSetup 43 * [https://groups.google.com/d/topic/sahana-eden/Vy8xT4bA_pA/discussion Profile Layer]44 * [https://groups.google.com/d/topic/sahana-eden/TadDloKhqkg/discussion Profile Templates Plan]45 * [https://groups.google.com/d/topic/sahana-eden/YzgzXpTQjt8/discussion Splitting up CSS into separate files]46 50 47 51 ----