I've been successfully working my way thru the Django book to learn how to use Django to develop a simple community site UNTIL I tried to get the admin site going. All went ok on model validation. I edited urls.py as advised and then got this error when trying to fire up admin... any ideas on how to fix? many thnx... chip
AttributeError at /admin/ 'AdminSite' object has no attribute 'urls' Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Exception Type: AttributeError Exception Value: 'AdminSite' object has no attribute 'urls' Exception Location: /Users/chiphay/djcode/mysite/../mysite/urls.py in <module>, line 21 Python Executable: /Library/Frameworks/Python.framework/Versions/2.6/ Resources/Python.app/Contents/MacOS/Python Python Version: 2.6.1 Python Path: ['/Users/chiphay/djcode/mysite', '/Library/Frameworks/ Python.framework/Versions/2.6/lib/python26.zip', '/Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6', '/Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/Library/ Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/ Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat- mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/ Versions/2.6/lib/python2.6/lib-tk', '/Library/Frameworks/ Python.framework/Versions/2.6/lib/python2.6/lib-old', '/Library/ Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/ Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- packages'] Server time: Mon, 2 Mar 2009 14:59:22 -0600 ------------------ nvironment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.0.2 final Python Version: 2.6.1 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'mysite.architour'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-packages/django/core/handlers/base.py" in get_response 77. request.path_info) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-packages/django/core/urlresolvers.py" in resolve 179. for pattern in self.urlconf_module.urlpatterns: File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ site-packages/django/core/urlresolvers.py" in _get_urlconf_module 198. self._urlconf_module = __import__ (self.urlconf_name, {}, {}, ['']) File "/Users/chiphay/djcode/mysite/../mysite/urls.py" in <module> 21. (r'^admin/', include(admin.site.urls)), Exception Type: AttributeError at /admin/ Exception Value: 'AdminSite' object has no attribute 'urls' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

