google-code-export / django-values

Automatically exported from code.google.com/p/django-values
1 stars 1 forks source link

Document a procedure for supplying "suggested" values for a distributed app #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For distributed apps, there are often useful defaults for basic settings,
and the app's author should have a way to include those defaults with the
appliation.

To that end, document a process for doing so, probably using a post_syncdb
hook to inject the values when the app is first installed.

This should be robust enough to not throw an error if the values framework
has not yet been installed, even if this means the user will have to run
syncdb twice  in roder to get everything initialized.

Original issue reported on code.google.com by gulop...@gmail.com on 14 May 2007 at 6:05

GoogleCodeExporter commented 9 years ago
The recent update includes `dbsettings.utils.set_defaults` that allows this.

Original comment by gulop...@gmail.com on 1 Jun 2007 at 10:48