Environment Request Method GET Request URL http localhost admin Django

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Environment:
Request Method: GET
Request URL: http://localhost/admin/
Django Version: 0.97-pre-SVN-8002
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'gallery',
'accounts']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
76. callback, callback_args, callback_kwargs = resolver.resolve(request.path)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve
231. for pattern in self.urlconf_module.urlpatterns:
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
255. raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e)
Exception Type: ImproperlyConfigured at /admin/
Exception Value: Error while importing URLconf 'urls': 'MediaDefiningClass' object is not iterable