Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Use admin.autodiscover() by default?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
James Bennett  
View profile  
 More options Jul 19 2008, 4:08 am
From: "James Bennett" <ubernost...@gmail.com>
Date: Sat, 19 Jul 2008 03:08:02 -0500
Local: Sat, Jul 19 2008 4:08 am
Subject: Use admin.autodiscover() by default?
As of the newforms-admin merge, the IRC channel is seeing a sudden
rush of folks who try the tutorial and complain because the admin
doesn't work. And they're right, because as written the tutorial sets
up the admin in such a way that it's never aware of any models being
registered -- including the contrib models that already have admin
classes.

Adding 'admin.autodiscover()' to the project's root URLConf fixes
this; normally I'd just check in a quick change to the tutorial to
indicate that this should happen, but it feels to me like the right
thing to do here is instead tweak the project template so that line is
in the default URLConf (but commented out like the rest of the admin
stuff), at which point the tutorial can simply stay as-is.

Thoughts?

--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Valts Mazurs  
View profile  
 More options Jul 19 2008, 4:41 am
From: "Valts Mazurs" <vald...@gmail.com>
Date: Sat, 19 Jul 2008 11:41:08 +0300
Local: Sat, Jul 19 2008 4:41 am
Subject: Re: Use admin.autodiscover() by default?

+1 As this would remove unneccessary frustration.

Regards,
Valts.

On Sat, Jul 19, 2008 at 11:08 AM, James Bennett <ubernost...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Keith-Magee  
View profile  
 More options Jul 19 2008, 8:06 am
From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Sat, 19 Jul 2008 20:06:49 +0800
Local: Sat, Jul 19 2008 8:06 am
Subject: Re: Use admin.autodiscover() by default?

On Sat, Jul 19, 2008 at 4:08 PM, James Bennett <ubernost...@gmail.com> wrote:

> Adding 'admin.autodiscover()' to the project's root URLConf fixes
> this; normally I'd just check in a quick change to the tutorial to
> indicate that this should happen, but it feels to me like the right
> thing to do here is instead tweak the project template so that line is
> in the default URLConf (but commented out like the rest of the admin
> stuff), at which point the tutorial can simply stay as-is.

I agree that this is something that should be in the project template.
However, we can't completely avoid changes to the tutorial text - the
text about what needs to be uncommented will need to be tweaked
slightly. A quick explanation in tutorial 3 of the purpose of the
admin.autodiscover() would also be appropriate, IMHO.

Russ %-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jacob Kaplan-Moss  
View profile  
 More options Jul 19 2008, 8:45 am
From: "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
Date: Sat, 19 Jul 2008 07:45:03 -0500
Local: Sat, Jul 19 2008 8:45 am
Subject: Re: Use admin.autodiscover() by default?

On Sat, Jul 19, 2008 at 3:08 AM, James Bennett <ubernost...@gmail.com> wrote:
> Adding 'admin.autodiscover()' to the project's root URLConf fixes
> this; normally I'd just check in a quick change to the tutorial to
> indicate that this should happen, but it feels to me like the right
> thing to do here is instead tweak the project template so that line is
> in the default URLConf (but commented out like the rest of the admin
> stuff), at which point the tutorial can simply stay as-is.

We should do both -- many of these questions (especially early on) are
going to be from people who're upgrading instead of starting anew (the
dynamic might shift after 1.0 final).

Jacob


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Tracey  
View profile  
 More options Jul 19 2008, 9:32 am
From: "Karen Tracey" <kmtra...@gmail.com>
Date: Sat, 19 Jul 2008 09:32:35 -0400
Local: Sat, Jul 19 2008 9:32 am
Subject: Re: Use admin.autodiscover() by default?

On Sat, Jul 19, 2008 at 8:45 AM, Jacob Kaplan-Moss <

FYI there was a ticket opened last night that suggests both of these:

http://code.djangoproject.com/ticket/7824

Karen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Rosner  
View profile  
 More options Jul 19 2008, 9:49 am
From: Brian Rosner <bros...@gmail.com>
Date: Sat, 19 Jul 2008 07:49:23 -0600
Local: Sat, Jul 19 2008 9:49 am
Subject: Re: Use admin.autodiscover() by default?

On Jul 19, 2008, at 2:08 AM, James Bennett wrote:

> Adding 'admin.autodiscover()' to the project's root URLConf fixes
> this; normally I'd just check in a quick change to the tutorial to
> indicate that this should happen, but it feels to me like the right
> thing to do here is instead tweak the project template so that line is
> in the default URLConf (but commented out like the rest of the admin
> stuff), at which point the tutorial can simply stay as-is.

> Thoughts?

Yeah, I agree that this should be done. I originally took the stance  
that it might be an uncommon thing since most people might want a  
custom AdminSite instance, and boy was I wrong ;)

Tweaking the tutorial would be a good idea too. Give a bit of  
information about it would be a good thing.

Brian Rosner
http://oebfare.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »