| TemplateSyntaxError | Python 2.3.5: /usr/bin/python Sat Jul 4 06:26:26 2009 |
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/.daryl/spiralblast/sonicdisruptors.co.uk/fcgi.py in run(self=<fcgi.Request object>) |
| 578 """Runs the handler, flushes the streams, and ends the request.""" |
| 579 try: |
| 580 protocolStatus, appStatus = self.server.handler(self) |
| 581 except: |
| 582 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>> |
| /home/.daryl/spiralblast/sonicdisruptors.co.uk/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>) |
| 1264 try: |
| 1265 try: |
| 1266 result = self.application(environ, start_response) |
| 1267 try: |
| 1268 for data in result: |
| result = None, self = <fcgi.WSGIServer object>, self.application = <django.core.handlers.wsgi.WSGIHandler object>, environ = {'DH_USER': 'spiralblast', 'DOCUMENT_ROOT': '/home/spiralblast/sonicdisruptors.co.uk', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'www.sonicdisruptors.co.uk', ...}, start_response = <function start_response> |
| /home/spiralblast/django/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DH_USER': 'spiralblast', 'DOCUMENT_ROOT': '/home/spiralblast/sonicdisruptors.co.uk', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'www.sonicdisruptors.co.uk', ...}, start_response=<function start_response>) |
| 237 response = http.HttpResponseBadRequest() |
| 238 else: |
| 239 response = self.get_response(request) |
| 240 |
| 241 # Apply response middleware |
| 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/spiralblast/django/django_src/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)}>) |
| 126 exc_info = sys.exc_info() |
| 127 receivers = signals.got_request_exception.send(sender=self.__class__, request=request) |
| 128 return self.handle_uncaught_exception(request, resolver, exc_info) |
| 129 |
| 130 def handle_uncaught_exception(self, request, resolver, exc_info): |
| 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 sonicdisruptors.urls ^/>, exc_info = (<class exceptions.ImportError>, <exceptions.ImportError instance>, <traceback object>) |
| /home/spiralblast/django/django_src/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 sonicdisruptors.urls ^/>, exc_info=(<class exceptions.ImportError>, <exceptions.ImportError instance>, <traceback object>)) |
| 146 if settings.DEBUG: |
| 147 from django.views import debug |
| 148 return debug.technical_500_response(request, *exc_info) |
| 149 |
| 150 # When DEBUG is False, send an error message to the admins. |
| debug = <module 'django.views.debug' from '/home/spiralblast/django/django_src/django/views/debug.pyc'>, debug.technical_500_response = <function technical_500_response>, request = <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, exc_info = (<class exceptions.ImportError>, <exceptions.ImportError instance>, <traceback object>) |
| /home/spiralblast/django/django_src/django/views/debug.py in technical_500_response(request=<WSGIRequest GET:<QueryDict: {}>, POST:<QueryDic...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, exc_type=<class exceptions.ImportError>, exc_value=<exceptions.ImportError instance>, tb=<traceback object>) |
| 37 """ |
| 38 reporter = ExceptionReporter(request, exc_type, exc_value, tb) |
| 39 html = reporter.get_traceback_html() |
| 40 return HttpResponseServerError(html, mimetype='text/html') |
| 41 |
| html undefined, reporter = <django.views.debug.ExceptionReporter instance>, reporter.get_traceback_html = <bound method ExceptionReporter.get_traceback_ht... <django.views.debug.ExceptionReporter instance>> |
| /home/spiralblast/django/django_src/django/views/debug.py in get_traceback_html(self=<django.views.debug.ExceptionReporter instance>) |
| 111 'loader_debug_info': self.loader_debug_info, |
| 112 }) |
| 113 return t.render(c) |
| 114 |
| 115 def get_template_exception_info(self): |
| t = <django.template.Template object>, t.render = <bound method Template.render of <django.template.Template object>>, c = [{'loader_debug_info': None, 'unicode_hint': '',...eption_value': u'cannot import name connection'}] |
| /home/spiralblast/django/django_src/django/template/__init__.py in render(self=<django.template.Template object>, context=[{'loader_debug_info': None, 'unicode_hint': '',...eption_value': u'cannot import name connection'}]) |
| 174 def render(self, context): |
| 175 "Display stage -- can be called many times" |
| 176 return self.nodelist.render(context) |
| 177 |
| 178 def compile_string(template_string, origin): |
| self = <django.template.Template object>, self.nodelist = [<Text Node: '\n<!DOCTYPE HTML PUBLIC "-'>, <Var... 5>, <Text Node: '\n </tbody>\n </table>\n'>], self.nodelist.render = <bound method DebugNodeList.render of [<Text Nod...5>, <Text Node: '\n </tbody>\n </table>\n'>]>, context = [{'loader_debug_info': None, 'unicode_hint': '',...eption_value': u'cannot import name connection'}] |
| /home/spiralblast/django/django_src/django/template/__init__.py in render(self=[<Text Node: '\n<!DOCTYPE HTML PUBLIC "-'>, <Var... 5>, <Text Node: '\n </tbody>\n </table>\n'>], context=[{'loader_debug_info': None, 'unicode_hint': '',...eption_value': u'cannot import name connection'}]) |
| 766 for node in self: |
| 767 if isinstance(node, Node): |
| 768 bits.append(self.render_node(node, context)) |
| 769 else: |
| 770 bits.append(node) |
| bits = [u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tr...name="robots" content="NONE,NOARCHIVE">\n <title>', u'ImportError', u' at ', u'/gigs/17/', u'</title>\n <style type="text/css">\n html * { .../script>\n</head>\n<body>\n<div id="summary">\n <h1>', u'ImportError', u' at ', u'/gigs/17/', u'</h1>\n <pre class="exception_value">', u'cannot import name connection', u'</pre>\n <table class="meta">\n <tr>\n <th>Request Method:</th>\n <td>', u'GET', u'</td>\n </tr>\n <tr>\n <th>Request URL:</th>\n <td>', u'http', u'://', u'www.sonicdisruptors.co.uk', u'/gigs/17/', u'</td>\n </tr>\n <tr>\n <th>Exception Type:</th>\n <td>', u'ImportError', u'</td>\n </tr>\n <tr>\n <th>Exception Value:</th>\n <td><pre>', ...], bits.append = <built-in method append of list object>, self = [<Text Node: '\n<!DOCTYPE HTML PUBLIC "-'>, <Var... 5>, <Text Node: '\n </tbody>\n </table>\n'>], self.render_node = <bound method DebugNodeList.render_node of [<Tex...5>, <Text Node: '\n </tbody>\n </table>\n'>]>, node = <Variable Node: server_time|date:"r">, context = [{'loader_debug_info': None, 'unicode_hint': '',...eption_value': u'cannot import name connection'}] |
| /home/spiralblast/django/django_src/django/template/debug.py in render_node(self=[<Text Node: '\n<!DOCTYPE HTML PUBLIC "-'>, <Var... 5>, <Text Node: '\n </tbody>\n </table>\n'>], node=<Variable Node: server_time|date:"r">, context=[{'loader_debug_info': None, 'unicode_hint': '',...eption_value': u'cannot import name connection'}]) |
| 79 wrapped.source = node.source |
| 80 wrapped.exc_info = exc_info() |
| 81 raise wrapped |
| 82 return result |
| 83 |
| wrapped = <django.template.TemplateSyntaxError instance> |
TemplateSyntaxError: Caught an exception while rendering: 'module' object has no attribute 'Manager'
Original Traceback (most recent call last):
File "/home/spiralblast/django/django_src/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/spiralblast/django/django_src/django/template/debug.py", line 87, in render
output = force_unicode(self.filter_expression.resolve(context))
File "/home/spiralblast/django/django_src/django/template/__init__.py", line 559, in resolve
new_obj = func(obj, *arg_vals)
File "/home/spiralblast/django/django_src/django/template/defaultfilters.py", line 631, in date
return format(value, arg)
File "/home/spiralblast/django/django_src/django/utils/dateformat.py", line 264, in format
return df.format(format_string)
File "/home/spiralblast/django/django_src/django/utils/dateformat.py", line 29, in format
pieces.append(force_unicode(getattr(self, piece)()))
File "/home/spiralblast/django/django_src/django/utils/dateformat.py", line 174, in r
return self.format('D, j M Y H:i:s O')
File "/home/spiralblast/django/django_src/django/utils/dateformat.py", line 29, in format
pieces.append(force_unicode(getattr(self, piece)()))
File "/home/spiralblast/django/django_src/django/utils/encoding.py", line 49, in force_unicode
s = unicode(s)
File "/home/spiralblast/django/django_src/django/utils/functional.py", line 201, in __unicode_cast
return self.__func(*self.__args, **self.__kw)
File "/home/spiralblast/django/django_src/django/utils/translation/__init__.py", line 62, in ugettext
return real_ugettext(message)
File "/home/spiralblast/django/django_src/django/utils/translation/__init__.py", line 43, in delayed_loader
return g['real_%s' % caller](*args, **kwargs)
File "/home/spiralblast/django/django_src/django/utils/translation/trans_real.py", line 290, in ugettext
return do_translate(message, 'ugettext')
File "/home/spiralblast/django/django_src/django/utils/translation/trans_real.py", line 280, in do_translate
_default = translation(settings.LANGUAGE_CODE)
File "/home/spiralblast/django/django_src/django/utils/translation/trans_real.py", line 198, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/home/spiralblast/django/django_src/django/utils/translation/trans_real.py", line 181, in _fetch
app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])
File "/home/spiralblast/django/django_src/django/contrib/admin/__init__.py", line 1, in ?
from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL
File "/home/spiralblast/django/django_src/django/contrib/admin/options.py", line 5, in ?
from django.contrib.contenttypes.models import ContentType
File "/home/spiralblast/django/django_src/django/contrib/contenttypes/models.py", line 5, in ?
class ContentTypeManager(models.Manager):
AttributeError: 'module' object has no attribute 'Manager'
args =
(u"Caught an exception while rendering: 'module' object has no attribute 'Manager'",)
exc_info =
(<class exceptions.AttributeError>, <exceptions.AttributeError instance>, <traceback object>)
source =
(<django.template.StringOrigin object>, (5981, 6005))