Changes between Version 16 and Version 17 of BluePrintWebSetup
- Timestamp:
- 06/07/10 07:52:33 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintWebSetup
v16 v17 7 7 8 8 Configuration settings are in the file {{{models/000_config.py}}} which will have a simple structured format. 9 * {{{models/00_settings.py}}} reads these settings to do the actual configuration. 10 * The Web Setup should ideally read in the {{{000_config.py}}} file, make any amendments as-required & then write it out. 11 * This means that developers can edit the settings live (we remain RAD) & there are no unncessary DB calls every request. 12 * Ideally the Web setup should have a UI which works via introspection, so doesn't need to be maintained separately when settings are added/amended (this means the settings file needs to include labels/help text). 9 13 * 000_config.py instantiates the '''S3Config''' class as ''deployment_settings'': 10 14 * S3Config is a subclass of ''Storage'' and can therefore be written in dot-notation … … 13 17 * S3Config could then even contain a method to write the instance to a config file like 000_config.py 14 18 * a S3Config instance could be made read-only during the current request (=safer) by amending the ''!__setattr!__'' method to not except updates (then you can still overwrite deployment_settings by replacing it with a new instance) 15 * {{{models/00_settings.py}}} reads these settings to do the actual configuration.16 * The Web Setup should ideally read in the {{{000_config.py}}} file, make any amendments as-required & then write it out.17 * This means that developers can edit the settings live (we remain RAD) & there are no unncessary DB calls every request.18 * Ideally the Web setup should have a UI which works via introspection, so doesn't need to be maintained separately when settings are added/amended (this means the settings file needs to include labels/help text).19 19 20 20 These are the settings which will be configured: … … 35 35 BluePrints 36 36 BluePrints 37 BluePrints