Thanks man! Ryan.
On Jun 15, 9:12 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Mon, Jun 15, 2009 at 8:34 PM, ebbnormal <ryan.wiegh...@gmail.com> wrote: > > > Hello, > > > I have been following along the Django tutorial, and as I was editing > > the urlpatterns in my urls module, i got the following error > > when I tried to run the mysite server: > > > AttributeError at / > > 'AdminSite' object has no attribute 'urls' > > Request Method: GET > > Request URL: http://127.0.0.1:8000/ > > Exception Type: AttributeError > > > the line that error references is in my urls.py file, line 13: > > > >>>from django.conf.urls.defaults import * > > > >>>># Uncomment the next two lines to enable the admin: > > >>>>from django.contrib import admin > > >>>>admin.autodiscover() > > > >>>>urlpatterns = patterns('', > > >>>> # (r'^mysite/', include('mysite.foo.urls')), > > (r'^polls/$', 'mysite.polls.views.index'), > > (r'^polls/(?P<poll_id>\d+)/$', > > 'mysite.polls.views.detail'), > > (r'^polls/(?P<poll_id>\d+)/results/$', > > 'mysite.polls.views.results'), > > (r'^polls/(?P<poll_id>\d+)/vote/$', > > 'mysite.polls.views.vote'), > > (r'^admin/', include(admin.site.urls)), #FIXME: this > > is the error. > > >>>>) > > > however, line13 is exactly as written in part 3 of the official Django > > tutorial. > > > Any suggestions? > > > Thanks > > > Ryan. > > The problem is you are folloiwng the tutorial for the latest development > version of Django, but you are using Django 1.0. Follow the tutorial > here:http://docs.djangoproject.com/en/1.0/instead. > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---