List Info

Thread: Static content in admin?




Static content in admin?
country flaguser name
United States
2007-04-17 18:00:46
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.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Static content in admin?
user name
2007-04-18 07:33:01
On 4/17/07, RG <rgriffygmail.com> 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-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )