mpbatra / django-survey

Automatically exported from code.google.com/p/django-survey
0 stars 0 forks source link

'AdminSite' object has no attribute 'root' when example is run. #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download the latest version
2. manage.py runserver
3. try to hit /admin url - you will get an errro

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
django 1.3.1

Please provide any additional information below.

urls.py mentions:
(r'^admin/(.*)', admin.site.root),
but admin.site.root does not appear to exist ?

>>> from django.contrib import admin
>>> print admin.site.root
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: 'AdminSite' object has no attribute 'root'

i get same message on the browser:
AttributeError at /
'AdminSite' object has no attribute 'root'Request Method: GET 
Request URL: http://127.0.0.1:8000/ 
Django Version: 1.3.1 
Exception Type: AttributeError 
Exception Value: 'AdminSite' object has no attribute 'root' 
Exception Location: C:\temp\git_repo\examples\urls.py in <module>, line 11 
Python Executable: C:\Python27\python.exe 
Python Version: 2.7.2 

Original issue reported on code.google.com by davidj...@gmail.com on 10 May 2012 at 8:03