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."
+1 As this would remove unneccessary frustration.
Regards,
Valts.
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 %-)
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
> 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