'AdminSite' object has no attribute 'urls' issue

915 views
Skip to first unread message

jason

unread,
Feb 4, 2009, 11:05:10 PM2/4/09
to Django users
hello all.
i followed the django tutorial, to the second part ,when activate the
admin site, typing url 'http://localhost:8000/admin/' in the browser's
address bar, this error showed up.
my django version is 1.0.2, and python version is 2.6, using sqlite3.
are there any configurations wrong with the tutorial? or a django
version problem? thanks.

Alex Gaynor

unread,
Feb 4, 2009, 11:10:45 PM2/4/09
to django...@googlegroups.com
Unfortunately the docs you are reading are for the development version :( .  The correct way to wire up your admin in 1.0.2 is:

(r'^admin/(.*)', admin.site.root)

Alex

--
"I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire
"The people's good is the highest law."--Cicero

ethan zou

unread,
Feb 4, 2009, 11:14:59 PM2/4/09
to django...@googlegroups.com
now it works.
thanks a lot.

ethan zou

unread,
Feb 4, 2009, 11:33:44 PM2/4/09
to django...@googlegroups.com
i also feel confused about the django version. it develops so fast that i cannot catch up. different versions have so many changes. Could it be possible to find the the exact version of the tutorial in the official djangoproject website?
i think the differences of the version of django may confuse greener a lot. 

Alex Gaynor

unread,
Feb 4, 2009, 11:37:15 PM2/4/09
to django...@googlegroups.com
In general there will be no backwards incompatible changes after 1.0 to those APIs deemed stable(most of them), and the admin is no exception the old APIs continue to exist for this.  This is unfortunately an artifact of the fact that the 1.0 docs don't have their own home online yet, although they are available locally in the docs dir of any version of Django, which you can use if you have sphinx installed.

jason zones

unread,
Feb 4, 2009, 11:50:23 PM2/4/09
to django...@googlegroups.com
got it,:-)
Reply all
Reply to author
Forward
0 new messages