On 1/11/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:

On 1/11/06, Colleen Owens <[EMAIL PROTECTED]> wrote:
>  My latest question - I want to have some settings that apply to an
> application (not the objects within that application's model but to the
> application as a whole). For example, I want to have options like the
> maximum number of objects that should be displayed and various display
> options that are set by the system administrator through the admin
> interface. I know I can do this by writing some basic Python code and a
> custom view for the admin interface. This seems like a more general problem
> though, so I was wondering if Django has some built-in way of handling this.

Hey Colleen,

I'm not sure this answers your question, but feel free to make up your
own settings. See the docs here:
http://www.djangoproject.com/documentation/settings/#creating-your-own-settings

Adrian


This isn't exactly what I'm looking for. This would work, but it doesn't seem very elegant. I want the administrator of this site to be able to modify nearly everything through the admin interface.

At the moment, I'm thinking about just creating a Configuration class for my app (and forcing it to be a singleton) and storing that in the database. This still feels a little clumsy, but I think it will work.

Colleen


Reply via email to