rtucker/django-mediastream — Issue #6: When no AssetQueues exist, TemplateSyntaxError at /admin/
Author: rtucker
Created: 2011-11-25 12:49:56+00:00
State: open

```Environment:

Request Method: GET
Request URL: http://127.0.0.1:5002/admin/

Django Version: 1.3.1
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'debug_toolbar',
'gunicorn',
'south',
'mediastream.assets',
'mediastream.player',
'mediastream.queuer',
'mediastream.utilities']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')

Template error:
In template /home/mediastream/django-mediastream/env/lib/python2.6/site-packages/debug_toolbar/templates/debug_toolbar/panels/request_vars.html, error at line 69
Caught DoesNotExist while rendering: AssetQueue matching query does not exist.
59 :

60 :

61 :

62 :

63 :

64 :	{% trans "Variable" %}

65 :	{% trans "Value" %}

66 :

67 :

68 :

69 :	{% for key, value in session %}

70 :

71 :	{{ key|escape }}

72 :	{{ value|escape }}

73 :

74 :	{% endfor %}

75 :

76 :

77 : {% else %}

78 :

{% trans "No SESSION data" %}

79 : {% endif %}

Traceback:
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
178. response = middleware_method(request, response)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/debug_toolbar/middleware.py" in process_response
110. smart_unicode(self.debug_toolbars[request].render_toolbar() + self.tag))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/debug_toolbar/toolbar/loader.py" in render_toolbar
78. return render_to_string('debug_toolbar/base.html', context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/loader.py" in render_to_string
183. return t.render(Context(dictionary))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in render
123. return self._render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/test/utils.py" in instrumented_test_render
60. return self.nodelist.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/defaulttags.py" in render
227. nodelist.append(node.render(context))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/defaulttags.py" in render
311. return self.nodelist_true.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/debug.py" in render
90. output = self.filter_expression.resolve(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in resolve
510. obj = self.var.resolve(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in resolve
653. value = self._resolve_lookup(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in _resolve_lookup
698. current = current()
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/debug_toolbar/panels/request_vars.py" in content
44. return render_to_string('debug_toolbar/panels/request_vars.html', context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/loader.py" in render_to_string
183. return t.render(Context(dictionary))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in render
123. return self._render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/test/utils.py" in instrumented_test_render
60. return self.nodelist.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/defaulttags.py" in render
311. return self.nodelist_true.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/debug.py" in render_node
73. result = node.render(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/defaulttags.py" in render
227. nodelist.append(node.render(context))
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/debug.py" in render
90. output = self.filter_expression.resolve(context)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/base.py" in resolve
536. new_obj = func(obj, *arg_vals)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/template/defaultfilters.py" in _dec
34. args[0] = force_unicode(args[0])
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/utils/encoding.py" in force_unicode
71. s = unicode(s)
File "/home/mediastream/django-mediastream/mediastream/queuer/models.py" in __unicode__
49. return u"Item {0} in {1} ({2})".format(self.pk, self.queue,
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/db/models/fields/related.py" in __get__
315. rel_obj = QuerySet(self.field.rel.to).using(db).get(**params)
File "/home/mediastream/django-mediastream/env/lib/python2.6/site-packages/django/db/models/query.py" in get
349. % self.model._meta.object_name)

Exception Type: TemplateSyntaxError at /admin/
Exception Value: Caught DoesNotExist while rendering: AssetQueue matching query does not exist.