B Robster
B Robster

Reputation: 42063

Single model for storing django application-wide options

I have a set of top-level configuration data fields that I want to be able to set within django admin for each deployment of my django app. I only want one set of these.

Example fields: site_logo, contact_person, address, facebook_url, twitter_url

The problem is that Django Admin is geared towards tables (lists) of models, so its not a good fit for this type of singular configuration model. I really only want one of these models to exist for the whole site, and to be able to click into it from admin and edit the various fields.

It seems i've come across a 3rd party app in the past to accomplish this but can't find it anywhere. Part of the problem is I'm finding it difficult to find the right words to google. Any ideas?

Upvotes: 1

Views: 143

Answers (3)

arie
arie

Reputation: 18982

Not that i have used it, but i have heard good things about django-constance.

And there are even some more options listed in the Configuration-Grid on Django Packages.

Upvotes: 1

girasquid
girasquid

Reputation: 15526

It looks like django-values will do what you're looking for.

Other possible contenders:

Upvotes: 2

PhoebeB
PhoebeB

Reputation: 8570

Have a look at django-livesettings it sounds like it might fit.

Upvotes: 1

Related Questions