On 4/17/07, RG <[EMAIL PROTECTED]> wrote:
>
> Is there any way to manage static blocks of content from the admin
> panel? I am converting my companies website into django and many "non-
> programmers" will be maintaining the content.
>
> There are blocks on the home page that will get updated only ever so
> often, as well as footers, contact pages.. etc.

A way I've handled this in the past is with the permissions system. I
have a model called CurrentSpecial, which I use to populate a div on
the main page with whatever the current sale/special/whatever is.

For any user (other than myself) that is allowed to login to the Admin
and make changes, I make sure that the only permission they have for
that model is "can change currentspecial" (so they *don't* get the
"add" or "delete" permissions).

This essentially enforces a limit of one instance of this model in the
db. They can go in and change whatever the current details are for
that special, but they can't delete it, and they can't add new ones.

Not the greatest solution in the world, but it works. Anyone have any
better methods?

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to