On Friday 04 September 2009 10:00:37 patrickk wrote:

> e.g, when I´m using djangos auth-app and I´m extending the user-model
> with a user-profile, I´m having "auth" (with users and groups) and
> "user" (with user profile) on my admin index page. orderd by names,
> auth is very much on the top of my page while user is at the bottom.
> for an editor, this is probably hard to understand (because the editor
> doesn´t know anything about apps). for an editor, it´d more
> comfortable having a headline "user management" with the apps "users",
> "groups" and "user profiles". this re-arrangement could be defined in
> admin.py.

You can also define the arrangement by overriding the admin template for the 
index and hard coding in your own order.  It's not ideal, but it's perhaps 
preferable to adding another place for configuring the admin.  If you want 
this kind of flexibility for the index page, you might also want to add extra 
notes etc onto the page, which makes customising the template a reasonably 
good way to do it.

Having an admin.py for every project is a bit vague, because 'projects' don't 
really exist as far as Django is concerned, only 'apps'.

Luke

-- 
I teleported home one night
With Ron and Sid and Meg,
Ron stole Meggie's heart away
And I got Sidney's leg
(THHGTTG)

Luke Plant || http://lukeplant.me.uk/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to