thanks Alex the great :)
it worked

On 21 Apr, 15:31, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Tue, Apr 21, 2009 at 9:29 AM, 83nini <83n...@gmail.com> wrote:
>
> > I'm trying to work on the tutorial to create an admin site which takes
> > 3 steps:
> > 1. add "django.contrib.admin," to INSTALLED_APPS in the settings.py
> > file and make sure that :
> > "django.contrib.auth,"
> > "django.contrib.contenttypes,"
> > "django.contrib.sessions,"
> > are also there.
>
> > make sure that:
> > 'django.middleware.common.CommonMiddleware',
> > 'django.contrib.sessions.middleware.SessionMiddleware',
> > 'django.contrib.auth.middleware.AuthenticationMiddleware',
> > exist in MIDDLEWARE_CLASSES
>
> > 2. excute "python manage.py syncdb" and create a super user
>
> > 3. in the urls.py include the following code:
> > from django.contrib import admin
> > admin.autodiscover()
> > urlpatterns = patterns('',
> >      (r'^admin/', include(admin.site.urls)),
> > )
>
> > I am getting an error when trying to visit the Web browser
> >http://127.0.0.1:8000/admin/
>
> > error is :
> > AttributeError at /admin/
> > 'AdminSite' object has no attribute 'urls'
>
> > any idea why? and how to fix it?
>
> > thanks in advance.
> > cheers
>
> You are following the instructions for the Django development version, when
> you  are using django 1.0.  Follow the instructions 
> here:http://docs.djangoproject.com/en/1.0/intro/tutorial02/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- Dölj citerad text -
>
> - Visa citerad text -
--~--~---------~--~----~------------~-------~--~----~
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