| <type 'exceptions.AttributeError'> | Python 2.6.5: /home/oudsus/bin/python Sat May 19 17:53:02 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home2/oudsus/public_html/civ/fcgi.py in run(self=<fcgi.Request object>) |
| /home2/oudsus/public_html/civ/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
| /home/oudsus/lib/python2.6/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DOCUMENT_ROOT': '/home2/oudsus/public_html', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'thinker.cc', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 271 response = http.HttpResponseBadRequest() |
| 272 else: |
| 273 response = self.get_response(request) |
| 274 finally: |
| 275 signals.request_finished.send(sender=self.__class__) |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler object>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /home/oudsus/lib/python2.6/site-packages/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 167 # Get the exception info now, in case another exception is thrown later. |
| 168 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) |
| 169 response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) |
| 170 finally: |
| 171 # Reset URLconf for this thread on the way out for complete |
| response = None, self = <django.core.handlers.wsgi.WSGIHandler object>, self.handle_uncaught_exception = <bound method WSGIHandler.handle_uncaught_except...f <django.core.handlers.wsgi.WSGIHandler object>>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver = <RegexURLResolver ouds.urls (None:None) ^/>, global sys = <module 'sys' (built-in)>, sys.exc_info = <built-in function exc_info> |
| /home/oudsus/lib/python2.6/site-packages/django/core/handlers/base.py in handle_uncaught_exception(self=<django.core.handlers.wsgi.WSGIHandler object>, request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, resolver=<RegexURLResolver ouds.urls (None:None) ^/>, exc_info=(<type 'exceptions.AttributeError'>, AttributeError("'AdminSite' object has no attribute 'root'",), <traceback object>)) |
| 212 |
| 213 # If Http500 handler is not installed, re-raise last exception |
| 214 if resolver.urlconf_module is None: |
| 215 raise exc_info[1], None, exc_info[2] |
| 216 # Return an HttpResponse that displays a friendly error message. |
| resolver = <RegexURLResolver ouds.urls (None:None) ^/>, resolver.urlconf_module undefined, builtin None = None |
| /home/oudsus/lib/python2.6/site-packages/django/core/urlresolvers.py in _get_urlconf_module(self=<RegexURLResolver ouds.urls (None:None) ^/>) |
| 272 return self._urlconf_module |
| 273 except AttributeError: |
| 274 self._urlconf_module = import_module(self.urlconf_name) |
| 275 return self._urlconf_module |
| 276 urlconf_module = property(_get_urlconf_module) |
| self = <RegexURLResolver ouds.urls (None:None) ^/>, self._urlconf_module undefined, global import_module = <function import_module>, self.urlconf_name = 'ouds.urls' |
| /home/oudsus/lib/python2.6/site-packages/django/utils/importlib.py in import_module(name='ouds.urls', package=None) |
| 32 break |
| 33 level += 1 |
| 34 name = _resolve_name(name[level:], package, level) |
| 35 __import__(name) |
| 36 return sys.modules[name] |
| builtin __import__ = <built-in function __import__>, name = 'ouds.urls' |
| /home/oudsus/Ouds/civ/ouds/urls.py in |
| 18 urlpatterns = patterns('', |
| 19 (r'^lang/', include('django.conf.urls.i18n')), |
| 20 (r'^admin/(.*)', admin.site.root), |
| 21 |
| 22 (r'^medias/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), |
| admin = None, admin.site undefined |
<type 'exceptions.AttributeError'>: 'AdminSite' object has no attribute 'root'
args =
("'AdminSite' object has no attribute 'root'",)
message =
"'AdminSite' object has no attribute 'root'"