On Mon, 2007-06-04 at 03:33 -0700, Glin wrote:
> Hi, I've just started to use newforms-admin branch and I like "admin
> sites" feature, so I can have different admin sites.
> 
> However I run into one problem: How to specify different templates for
> different admin sites?
> 
> For example I want to have different header (in index template) or
> different form for some model - for admin site under "/admin/" and for
> admin site for content managers under /manager/ url.

You don't get this type of fine-grained control out of the box. You will
have to override some of the classes. For example, to customise the
index view on that level, override AdminSite.index() and replace the
template call at the end.

It might be possible to make some of this more customisable in
reasonable cases. Making everything under the sun changeable without
having to write a line of code is not a good approach, because we
already assume users can write Python, so inventing a whole new language
(via config params) is just adding workload. Post patches for some of
the things that might be useful to Trac and they'll be looked at.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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