| <class 'django.template.base.TemplateSyntaxError'> | Python 2.6.6: /home/users/kvartetf/bin/python Fri Jan 27 21:50:06 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.
| /home/users/kvartetf/kvartett/build/bdist.freebsd-7.3-RELEASE-p7-amd64/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) |
| /home/users/kvartetf/kvartett/build/bdist.freebsd-7.3-RELEASE-p7-amd64/egg/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
| 1116 try: |
| 1117 try: |
| 1118 result = self.application(environ, start_response) |
| 1119 try: |
| 1120 for data in result: |
| /home/users/kvartetf/lib/python2.6/site-packages/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>, environ={'DOCUMENT_ROOT': '/home/users/kvartetf/kammermusikk.net/www', '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': 'kammermusikk.net', 'HTTP_PRAGMA': 'no-cache', ...}, 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)}> |
| /home/users/kvartetf/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 kvartett.urls (None:None) ^/>, global sys = <module 'sys' (built-in)>, sys.exc_info = <built-in function exc_info> |
| /home/users/kvartetf/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 kvartett.urls (None:None) ^/>, exc_info=(<class 'django.core.exceptions.ImproperlyConfigured'>, ImproperlyConfigured('Error loading MySQLdb module: No module named MySQLdb',), <traceback object>)) |
| 201 if settings.DEBUG: |
| 202 from django.views import debug |
| 203 return debug.technical_500_response(request, *exc_info) |
| 204 |
| 205 logger.error('Internal Server Error: %s' % request.path, |
| debug = <module 'django.views.debug' from '/home/users/k.../python2.6/site-packages/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 'django.core.exceptions.ImproperlyConfigured'>, ImproperlyConfigured('Error loading MySQLdb module: No module named MySQLdb',), <traceback object>) |
| /home/users/kvartetf/lib/python2.6/site-packages/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 'django.core.exceptions.ImproperlyConfigured'>, exc_value=ImproperlyConfigured('Error loading MySQLdb module: No module named MySQLdb',), tb=<traceback object>) |
| 57 """ |
| 58 reporter = ExceptionReporter(request, exc_type, exc_value, tb) |
| 59 html = reporter.get_traceback_html() |
| 60 return HttpResponseServerError(html, mimetype='text/html') |
| 61 |
| html undefined, reporter = <django.views.debug.ExceptionReporter object>, reporter.get_traceback_html = <bound method ExceptionReporter.get_traceback_html of <django.views.debug.ExceptionReporter object>> |
| /home/users/kvartetf/lib/python2.6/site-packages/django/views/debug.py in get_traceback_html(self=<django.views.debug.ExceptionReporter object>) |
| 149 if frames: |
| 150 c['lastframe'] = frames[-1] |
| 151 return t.render(c) |
| 152 |
| 153 def get_template_exception_info(self): |
| t = <django.template.base.Template object>, t.render = <bound method Template.render of <django.template.base.Template object>>, c = [{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/base.py in render(self=<django.template.base.Template object>, context=[{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}]) |
| 121 context.render_context.push() |
| 122 try: |
| 123 return self._render(context) |
| 124 finally: |
| 125 context.render_context.pop() |
| self = <django.template.base.Template object>, self._render = <bound method Template._render of <django.template.base.Template object>>, context = [{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/base.py in _render(self=<django.template.base.Template object>, context=[{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}]) |
| 115 |
| 116 def _render(self, context): |
| 117 return self.nodelist.render(context) |
| 118 |
| 119 def render(self, context): |
| self = <django.template.base.Template object>, self.nodelist = [<Text Node: ' <!DOCTYPE HTML PUBLIC "-'>, <If n... '>, <If node>, <Text Node: ' </body> </html> '>], self.nodelist.render = <bound method DebugNodeList.render of [<Text Nod...'>, <If node>, <Text Node: ' </body> </html> '>]>, context = [{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/base.py in render(self=[<Text Node: ' <!DOCTYPE HTML PUBLIC "-'>, <If n... '>, <If node>, <Text Node: ' </body> </html> '>], context=[{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}]) |
| 742 for node in self: |
| 743 if isinstance(node, Node): |
| 744 bits.append(self.render_node(node, context)) |
| 745 else: |
| 746 bits.append(node) |
| bits = [u'\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Tr...name="robots" content="NONE,NOARCHIVE">\n <title>', u'ImproperlyConfigured', u' at /symfonisk_og_visuelt.htm', u'</title>\n <style type="text/css">\n html * { ...ze: 1.5em; margin: 10px 0 10px 0; }\n </style>\n ', u'\n <script type="text/javascript">\n //<!--\...return false;\n }\n //-->\n </script>\n ', u'\n</head>\n<body>\n<div id="summary">\n <h1>', u'ImproperlyConfigured', u' at /symfonisk_og_visuelt.htm', u'</h1>\n <pre class="exception_value">', u'Error loading MySQLdb module: No module named MySQLdb', u'</pre>\n <table class="meta">\n', u'\n <tr>\n <th>Request Method:</th>\n ...k.net/symfonisk_og_visuelt.htm</td>\n </tr>\n', u'\n <tr>\n <th>Django Version:</th>\n <td>', u'1.3.1', u'</td>\n </tr>\n', u'\n <tr>\n <th>Exception Type:</th>\n <td>ImproperlyConfigured</td>\n </tr>\n', u'\n', u'\n <tr>\n <th>Exception Value:</th>\n ... No module named MySQLdb</pre></td>\n </tr>\n', u'\n', u'\n <tr>\n <th>Exception Location:</th>....py in <module>, line 14</td>\n </tr>\n', ...], bits.append = <built-in method append of list object>, self = [<Text Node: ' <!DOCTYPE HTML PUBLIC "-'>, <If n... '>, <If node>, <Text Node: ' </body> </html> '>], self.render_node = <bound method DebugNodeList.render_node of [<Tex...'>, <If node>, <Text Node: ' </body> </html> '>]>, node = <Variable Node: server_time|date:"r">, context = [{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/debug.py in render_node(self=[<Text Node: ' <!DOCTYPE HTML PUBLIC "-'>, <If n... '>, <If node>, <Text Node: ' </body> </html> '>], node=<Variable Node: server_time|date:"r">, context=[{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}]) |
| 71 def render_node(self, node, context): |
| 72 try: |
| 73 result = node.render(context) |
| 74 except TemplateSyntaxError, e: |
| 75 if not hasattr(e, 'source'): |
| result undefined, node = <Variable Node: server_time|date:"r">, node.render = <bound method DebugVariableNode.render of <Variable Node: server_time|date:"r">>, context = [{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/debug.py in render(self=<Variable Node: server_time|date:"r">, context=[{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}]) |
| 88 def render(self, context): |
| 89 try: |
| 90 output = self.filter_expression.resolve(context) |
| 91 output = localize(output, use_l10n=context.use_l10n) |
| 92 output = force_unicode(output) |
| output undefined, self = <Variable Node: server_time|date:"r">, self.filter_expression = <django.template.base.FilterExpression object>, self.filter_expression.resolve = <bound method FilterExpression.resolve of <django.template.base.FilterExpression object>>, context = [{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/base.py in resolve(self=<django.template.base.FilterExpression object>, context=[{'loader_debug_info': None, 'unicode_hint': '',...on': (1, 0)}>, 'template_does_not_exist': False}], ignore_failures=False) |
| 534 new_obj = func(obj, autoescape=context.autoescape, *arg_vals) |
| 535 else: |
| 536 new_obj = func(obj, *arg_vals) |
| 537 if getattr(func, 'is_safe', False) and isinstance(obj, SafeData): |
| 538 obj = mark_safe(new_obj) |
| new_obj undefined, func = <function date>, obj = datetime.datetime(2012, 1, 27, 21, 50, 6, 290951), arg_vals = [u'r'] |
| /home/users/kvartetf/lib/python2.6/site-packages/django/template/defaultfilters.py in date(value=datetime.datetime(2012, 1, 27, 21, 50, 6, 290951), arg=u'r') |
| 693 except AttributeError: |
| 694 try: |
| 695 return format(value, arg) |
| 696 except AttributeError: |
| 697 return '' |
| format = <function format>, value = datetime.datetime(2012, 1, 27, 21, 50, 6, 290951), arg = u'r' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/dateformat.py in format(value=datetime.datetime(2012, 1, 27, 21, 50, 6, 290951), format_string=u'r') |
| 283 "Convenience function" |
| 284 df = DateFormat(value) |
| 285 return df.format(format_string) |
| 286 |
| 287 def time_format(value, format_string): |
| df = <django.utils.dateformat.DateFormat object>, df.format = <bound method DateFormat.format of <django.utils.dateformat.DateFormat object>>, format_string = u'r' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/dateformat.py in format(self=<django.utils.dateformat.DateFormat object>, formatstr=u'r') |
| 28 for i, piece in enumerate(re_formatchars.split(force_unicode(formatstr))): |
| 29 if i % 2: |
| 30 pieces.append(force_unicode(getattr(self, piece)())) |
| 31 elif piece: |
| 32 pieces.append(re_escaped.sub(r'\1', piece)) |
| pieces = [], pieces.append = <built-in method append of list object>, global force_unicode = <function force_unicode>, builtin getattr = <built-in function getattr>, self = <django.utils.dateformat.DateFormat object>, piece = u'r' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/dateformat.py in r(self=<django.utils.dateformat.DateFormat object>) |
| 189 def r(self): |
| 190 "RFC 2822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'" |
| 191 return self.format('D, j M Y H:i:s O') |
| 192 |
| 193 def S(self): |
| self = <django.utils.dateformat.DateFormat object>, self.format = <bound method DateFormat.format of <django.utils.dateformat.DateFormat object>> |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/dateformat.py in format(self=<django.utils.dateformat.DateFormat object>, formatstr='D, j M Y H:i:s O') |
| 28 for i, piece in enumerate(re_formatchars.split(force_unicode(formatstr))): |
| 29 if i % 2: |
| 30 pieces.append(force_unicode(getattr(self, piece)())) |
| 31 elif piece: |
| 32 pieces.append(re_escaped.sub(r'\1', piece)) |
| pieces = [], pieces.append = <built-in method append of list object>, global force_unicode = <function force_unicode>, builtin getattr = <built-in function getattr>, self = <django.utils.dateformat.DateFormat object>, piece = u'D' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/encoding.py in force_unicode(s=<django.utils.functional.__proxy__ object>, encoding='utf-8', strings_only=False, errors='strict') |
| 69 if not isinstance(s, basestring,): |
| 70 if hasattr(s, '__unicode__'): |
| 71 s = unicode(s) |
| 72 else: |
| 73 try: |
| s = <django.utils.functional.__proxy__ object>, builtin unicode = <type 'unicode'> |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/functional.py in __unicode_cast(self=<django.utils.functional.__proxy__ object>) |
| 204 |
| 205 def __unicode_cast(self): |
| 206 return self.__func(*self.__args, **self.__kw) |
| 207 |
| 208 def __str_cast(self): |
| self = <django.utils.functional.__proxy__ object>, self.__func undefined, self.__args undefined, self.__kw undefined |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/translation/__init__.py in ugettext(message='Fri') |
| 79 |
| 80 def ugettext(message): |
| 81 return _trans.ugettext(message) |
| 82 |
| 83 def ungettext(singular, plural, number): |
| global _trans = <django.utils.translation.Trans object>, _trans.ugettext = <function ugettext>, message = 'Fri' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/translation/trans_real.py in ugettext(message='Fri') |
| 284 |
| 285 def ugettext(message): |
| 286 return do_translate(message, 'ugettext') |
| 287 |
| 288 def pgettext(context, message): |
| global do_translate = <function do_translate>, message = 'Fri' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/translation/trans_real.py in do_translate(message='Fri', translation_function='ugettext') |
| 274 if _default is None: |
| 275 from django.conf import settings |
| 276 _default = translation(settings.LANGUAGE_CODE) |
| 277 result = getattr(_default, translation_function)(eol_message) |
| 278 if isinstance(message, SafeData): |
| global _default = None, global translation = <function translation>, settings = <django.conf.LazySettings object>, settings.LANGUAGE_CODE = 'no' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/translation/trans_real.py in translation(language='no') |
| 183 return res |
| 184 |
| 185 default_translation = _fetch(settings.LANGUAGE_CODE) |
| 186 current_translation = _fetch(language, fallback=default_translation) |
| 187 |
| default_translation undefined, _fetch = <function _fetch>, settings = <django.conf.LazySettings object>, settings.LANGUAGE_CODE = 'no' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/translation/trans_real.py in _fetch(lang='no', fallback=None) |
| 160 |
| 161 for appname in reversed(settings.INSTALLED_APPS): |
| 162 app = import_module(appname) |
| 163 apppath = os.path.join(os.path.dirname(app.__file__), 'locale') |
| 164 |
| app = <module 'django.contrib.markup' from '/home/user...ite-packages/django/contrib/markup/__init__.pyc'>, global import_module = <function import_module>, appname = 'django.contrib.admin' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/importlib.py in import_module(name='django.contrib.admin', 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 = 'django.contrib.admin' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/contrib/admin/__init__.py in |
| 2 # has been referenced in documentation. |
| 3 from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME |
| 4 from django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL |
| 5 from django.contrib.admin.options import StackedInline, TabularInline |
| 6 from django.contrib.admin.sites import AdminSite, site |
| django undefined, ACTION_CHECKBOX_NAME undefined |
| /home/users/kvartetf/lib/python2.6/site-packages/django/contrib/admin/helpers.py in |
| 2 from django.conf import settings |
| 3 from django.contrib.admin.util import (flatten_fieldsets, lookup_field, |
| 4 display_for_field, label_for_field, help_text_for_field) |
| 5 from django.contrib.contenttypes.models import ContentType |
| 6 from django.core.exceptions import ObjectDoesNotExist |
| django undefined, flatten_fieldsets undefined, lookup_field undefined, display_for_field undefined, label_for_field undefined, help_text_for_field undefined |
| /home/users/kvartetf/lib/python2.6/site-packages/django/contrib/admin/util.py in |
| 2 from django.db.models.sql.constants import LOOKUP_SEP |
| 3 from django.db.models.deletion import Collector |
| 4 from django.db.models.related import RelatedObject |
| 5 from django.forms.forms import pretty_name |
| 6 from django.utils import formats |
| django undefined, models undefined |
| /home/users/kvartetf/lib/python2.6/site-packages/django/db/__init__.py in |
| 76 # we load all these up for backwards compatibility, you should use |
| 77 # connections['default'] instead. |
| 78 connection = connections[DEFAULT_DB_ALIAS] |
| 79 backend = load_backend(connection.settings_dict['ENGINE']) |
| 80 |
| connection undefined, connections = None, DEFAULT_DB_ALIAS = None |
| /home/users/kvartetf/lib/python2.6/site-packages/django/db/utils.py in __getitem__(self=<django.db.utils.ConnectionHandler object>, alias='default') |
| 91 self.ensure_defaults(alias) |
| 92 db = self.databases[alias] |
| 93 backend = load_backend(db['ENGINE']) |
| 94 conn = backend.DatabaseWrapper(db, alias) |
| 95 self._connections[alias] = conn |
| backend undefined, global load_backend = <function load_backend>, db = {'ENGINE': 'django.db.backends.mysql', 'HOST': 'db9.subsys.no', 'NAME': 'kvartetf', 'OPTIONS': {}, 'PASSWORD': 'HWksDW', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, ...} |
| /home/users/kvartetf/lib/python2.6/site-packages/django/db/utils.py in load_backend(backend_name='django.db.backends.mysql') |
| 31 # Look for a fully qualified database backend name |
| 32 try: |
| 33 return import_module('.base', backend_name) |
| 34 except ImportError, e_user: |
| 35 # The database backend wasn't found. Display a helpful error message |
| global import_module = <function import_module>, backend_name = 'django.db.backends.mysql' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/utils/importlib.py in import_module(name='django.db.backends.mysql.base', package='django.db.backends.mysql') |
| 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 = 'django.db.backends.mysql.base' |
| /home/users/kvartetf/lib/python2.6/site-packages/django/db/backends/mysql/base.py in |
| 12 except ImportError, e: |
| 13 from django.core.exceptions import ImproperlyConfigured |
| 14 raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) |
| 15 |
| 16 # We want version (1, 2, 1, 'final', 2) or later. We can't just use |
| ImproperlyConfigured = None, e = None |
<class 'django.template.base.TemplateSyntaxError'>: Caught ImproperlyConfigured while rendering: Error loading MySQLdb module: No module named MySQLdb
args =
(u'Caught ImproperlyConfigured while rendering: Error loading MySQLdb module: No module named MySQLdb',)
exc_info =
(<class 'django.core.exceptions.ImproperlyConfigured'>, ImproperlyConfigured('Error loading MySQLdb module: No module named MySQLdb',), <traceback object>)
message =
u'Caught ImproperlyConfigured while rendering: Error loading MySQLdb module: No module named MySQLdb'
source =
(<django.template.base.StringOrigin object>, (6585, 6609))