views:

224

answers:

4

I need to program kind of configuration registry for Django-based application.

Requirements:

  1. Most likely param_name : param_value structure
  2. Editable via admin interface
  3. Has to work with syncdb. How to deal with a situation in which other apps depend on configuration model and the model itself has not been initialized yet in DB? Let's say I would like to have configurable model fields properties, i.e. the default value setting?

Any ideas or suggestions would be appreciated.

+1  A: 

Once a while (year ago) I used dbsettings to have some sort of business configuration accessible via admin interface, but I cann't say how it fits today.

zgoda
TODO: Integration with newforms-admin :/Thanks, it's probably worth checking out anyway.
ohnoes
A: 

I think you'll have trouble if you make other apps depend (at interpretation/app-loading time) on values set in your config app. Can you use some kind of placeholder value in Python code at interpretation time, and then pull in the real config data on the post_syncdb signal?

Carl Meyer
A: 

Had to bump. dbsettings seems out-of-date, its last commit is ~2k7.

Any other suggestions, please?

ohnoes
Please don't "bump" by polluting the answers list with a non-answer. You can edit your question to provide more information, if you have it. If you don't actually have more information to provide, "bumping" for its own sake is just plain rude.
Carl Meyer
It was not supposed to be rude. After all I provided more information and added "please", making it quite polite I guess. And last but not least, got the most relevant answer, most likely because of the 'bump'. Take care.
ohnoes
+5  A: 

I have found djblets.siteconfig very useful. Works great with the Admin app, and very easy to use. Highly recommended.

Baishampayan Ghose