<type 'exceptions.AttributeError'>
Python 2.7.3: /usr/bin/python
Fri Oct 24 12:30:04 2014

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/mpaja/lib/python2.6/site-packages/flup-1.0.1-py2.6.egg/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    556         """Runs the handler, flushes the streams, and ends the request."""
    557         try:
=>  558             protocolStatus, appStatus = self.server.handler(self)
    559         except:
    560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /home/mpaja/lib/python2.6/site-packages/flup-1.0.1-py2.6.egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1114         try:
   1115             try:
=> 1116                 result = self.application(environ, start_response)
   1117                 try:
   1118                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DH_USER': 'mpaja', 'DOCUMENT_ROOT': '/home/mpaja/mpaja.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mpaja.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/bin:/usr/bin:/sbin:/usr/sbin', ...}, start_response = <function start_response>
 /usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DH_USER': 'mpaja', 'DOCUMENT_ROOT': '/home/mpaja/mpaja.com', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mpaja.com', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/bin:/usr/bin:/sbin:/usr/sbin', ...}, start_response=<function start_response>)
    270                 response = http.HttpResponseBadRequest()
    271             else:
=>  272                 response = self.get_response(request)
    273         finally:
    274             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)}>
 /usr/lib/python2.7/dist-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)}>)
    165                 # Get the exception info now, in case another exception is thrown later.
    166                 receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
=>  167                 response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
    168         finally:
    169             # 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 mpaja.urls (None:None) ^/>, global sys = <module 'sys' (built-in)>, sys.exc_info = <built-in function exc_info>
 /usr/lib/python2.7/dist-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 mpaja.urls (None:None) ^/>, exc_info=(<type 'exceptions.AttributeError'>, AttributeError("'AdminSite' object has no attribute 'root'",), <traceback object>))
    210 
    211         # If Http500 handler is not installed, re-raise last exception
=>  212         if resolver.urlconf_module is None:
    213             raise exc_info[1], None, exc_info[2]
    214         # Return an HttpResponse that displays a friendly error message.
resolver = <RegexURLResolver mpaja.urls (None:None) ^/>, resolver.urlconf_module undefined, builtin None = None
 /usr/lib/python2.7/dist-packages/django/core/urlresolvers.py in _get_urlconf_module(self=<RegexURLResolver mpaja.urls (None:None) ^/>)
    291             return self._urlconf_module
    292         except AttributeError:
=>  293             self._urlconf_module = import_module(self.urlconf_name)
    294             return self._urlconf_module
    295     urlconf_module = property(_get_urlconf_module)
self = <RegexURLResolver mpaja.urls (None:None) ^/>, self._urlconf_module undefined, global import_module = <function import_module>, self.urlconf_name = 'mpaja.urls'
 /usr/lib/python2.7/dist-packages/django/utils/importlib.py in import_module(name='mpaja.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 = 'mpaja.urls'
 /home/mpaja/django/projects/mpaja/urls.py in ()
     10     adminurl = url(r'^admin/', include(admin.site.urls))
     11 else:  # mpaja.com, older Django
=>   12     adminurl = (r'^admin/(.*)', admin.site.root)
     13 
     14 urlpatterns = patterns('',
adminurl undefined, 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'"