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