Youre right...kinda mixed up the version there..
Thanks !


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT-Entwickler 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 


-----Ursprüngliche Nachricht-----

Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im 
Auftrag von Tom Evans
Gesendet: Dienstag, 08. Februar 2011 16:05
An: django-users@googlegroups.com
Betreff: Re: problem with tutorial

On Tue, Feb 8, 2011 at 2:43 PM, Szabo, Patrick (LNG-VIE)
<patrick.sz...@lexisnexis.at> wrote:
>  Hi,
>
> I startet exploring django today and I'm currently stuck.
> Right now I'm doing the 3 part of the tutorial, where it says Design
> your URLs.
>
> I editet the urls.py so it looks like this:
>
> from django.conf.urls.defaults import *
>
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
>    (r'^polls/$', 'polls.views.index'),
>    (r'^polls/(?P<poll_id>\d+)/$', 'polls.views.detail'),
>    (r'^polls/(?P<poll_id>\d+)/results/$', 'polls.views.results'),
>    (r'^polls/(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),
>    (r'^admin/', include(admin.site.urls)),
> )
>
> Now if i go tho http://localhost:8000/polls/ i get the following error:
>
>
> AttributeError: 'AdminSite' object has no attribute 'urls'
>
> Can anyone tell me what i did wrong ?!
>
> Kind regards
>

I think you have installed Django 1.0 and are following the tutorial
for Django 1.2.

Can you check? Follow this example:


> $ python manage.py shell
Python 2.6.6 (r266:84292, Oct 20 2010, 10:09:04)
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import django
>>> django.VERSION
(1, 2, 3, 'final', 0)


Cheers

Tom

-- 
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.



-- 
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.

Reply via email to