Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-17 Thread patrickk
just for the records ... as russell commented on the ticket, this can all be done with subclassing AdminSite. so ... here´s how grouping and reordering app with the admin-interface can be achieved: http://code.google.com/p/django-grappelli/wiki/customizingindex and here´s the code (subclassing

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-17 Thread patrickk
I´ve opened a ticket with my patches (and a screenshot): http://code.djangoproject.com/ticket/11895 I´ve given up on changing the app-index page since this seems to break the overall coherence of the admin-interface. therefore, my patch doesn ´t change the breadcrumbs. it only gives you the abili

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-06 Thread patrickk
my thoughts: 1. defining groups within admin.py of each app makes reordering groups complicated. 2. to assign an app to a group, I have to register that app with a group - if I want (for example) to assign django.contrib.auth to the group "User Management", I have to change that app (which breaks

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-05 Thread Russ Ryba
I'm coming late to the coversation but wanted to add by thoughts on the admin index issue. I'm at a campground on a cell phone so bandwidth and typing is limited. I'll try to be specific in my comments. 1. I think that this should be handled by individual app admin.py. I like the idea of j

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-05 Thread patrickk
On 5 Sep., 06:02, Russell Keith-Magee wrote: > On Sat, Sep 5, 2009 at 3:32 AM, James Bennett wrote: > > > On Fri, Sep 4, 2009 at 2:21 PM, andybak wrote: > >> 1. I think worrying about projects vs. apps is a red-herring. We are > >> talking about a way to configure an admin app. There might be

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Russell Keith-Magee
On Sat, Sep 5, 2009 at 3:32 AM, James Bennett wrote: > > On Fri, Sep 4, 2009 at 2:21 PM, andybak wrote: >> 1. I think worrying about projects vs. apps is a red-herring. We are >> talking about a way to configure an admin app. There might be several >> of these on a 'site/project/whatever' > > Sinc

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread James Bennett
On Fri, Sep 4, 2009 at 2:21 PM, andybak wrote: > 1. I think worrying about projects vs. apps is a red-herring. We are > talking about a way to configure an admin app. There might be several > of these on a 'site/project/whatever' Since this all seems to be specific to particular instances of Admi

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread andybak
I've been hoping a discussion like this would start as soon as 1.1 was out the door. It would tie in nicely with the Admin GSOC work as well. I would like to chime in with some ideas for requirements and stay away from the implementation discussion for now. 1. I think worrying about projects vs.

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread patrickk
alright, I´ve been trying to implement the most basic functionality and here´s what I came up with. Please note that this is just a draft in order to explain what I´ve been talking about. It works ok, but it probably can be done better. thanks, patrick – SETTINGS.PY ADMIN_COLLECTIONS = [

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread patrickk
On 4 Sep., 15:30, Russell Keith-Magee wrote: > On Fri, Sep 4, 2009 at 8:37 PM, patrickk wrote: > > > fair enough. > > > I don´t have a problem with just seperating INSTALLED_APPS from > > ADMIN_APPS within the settings-file. I just thought another admin-file > > is nicer (but that´s not the key

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 8:37 PM, patrickk wrote: > > fair enough. > > I don´t have a problem with just seperating INSTALLED_APPS from > ADMIN_APPS within the settings-file. I just thought another admin-file > is nicer (but that´s not the key argument of my proposal). > > INSTALLED_APPS = ( >    'dj

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread patrickk
fair enough. I don´t have a problem with just seperating INSTALLED_APPS from ADMIN_APPS within the settings-file. I just thought another admin-file is nicer (but that´s not the key argument of my proposal). INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'dja

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 7:19 PM, patrickk wrote: > > thanks for the reply. > > On 4 Sep., 13:02, Luke Plant wrote: >> 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

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread patrickk
thanks for the reply. On 4 Sep., 13:02, Luke Plant wrote: > 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

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Luke Plant
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

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Joshua Russo
On Fri, Sep 4, 2009 at 8:00 AM, patrickk wrote: > > hi everyone, > > I just wanted to outline a basic idea in order to improve (at least > from my point of view) the index-page of the admin-interface. I don´t > have any code to share (so far), so I´m basically explaining my idea - > if people agr

proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread patrickk
hi everyone, I just wanted to outline a basic idea in order to improve (at least from my point of view) the index-page of the admin-interface. I don´t have any code to share (so far), so I´m basically explaining my idea - if people agree that this is useful, I´m trying to submit a patch. here´s