| 17 | | In models/000_config.py their is a deployment setting to control prepopulate. This is a list of directory names and will import data from a number of CSV files. The directories must be in the private/prepopulate directory tree and must include a file called tasks.cfg. |
| | 17 | In models/000_config.py their is a deployment setting which is used to control prepopulate. This is a list of directory names and will import data from a number of CSV files. The directories must be in the private/prepopulate directory tree and must include a file called tasks.cfg. |
| | 18 | |
| | 19 | The prepopulate deployment setting can also be a number which will relate to a single directory, the numerical value is still supported because existing instances of Eden and their maintenance scripts use this number. The use of a number is discouraged in favour of the list of names because this new approach is clearer and more flexible. |
| | 20 | |
| | 21 | ==== Deployment setting examples ==== |
| | 22 | Use the Shipment folder as the starting point for the prepopulate. |
| | 23 | {{{ |
| | 24 | deployment_settings.base.prepopulate = ["Standard"] |
| | 25 | }}} |
| | 26 | The Standard folder is not in the root directory, which is private/prepopulate, rather it is in demo (private/prepopulate/demo) but this will be found automatically. |
| | 27 | |
| | 28 | Uses the roles to import some special roles and then the user directory which is a special directory which is external to the version control and so private data (potentially sensitive data - such as volunteer details) can be held and then imported. |
| | 29 | {{{ |
| | 30 | deployment_settings.base.prepopulate = ["roles", "user"] |
| | 31 | }}} |
| | 32 | |