Traceback most recent call last File home bibla_devel website django c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Traceback (most recent call last):
File "/home/bibla_devel/website/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/bibla/website/common/decorators.py", line 30, in wrapper
return render_to_response(template, output, **kwargs)
File "/home/bibla_devel/website/django/shortcuts/__init__.py", line 20, in render_to_response
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/home/bibla_devel/website/django/template/loader.py", line 108, in render_to_string
return t.render(context_instance)
File "/home/bibla_devel/website/django/template/__init__.py", line 178, in render
return self.nodelist.render(context)
File "/home/bibla_devel/website/django/template/__init__.py", line 778, in render
bits.append(self.render_node(node, context))
File "/home/bibla_devel/website/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/bibla_devel/website/django/template/defaulttags.py", line 246, in render
return self.nodelist_false.render(context)
File "/home/bibla_devel/website/django/template/__init__.py", line 778, in render
bits.append(self.render_node(node, context))
File "/home/bibla_devel/website/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Failed lookup for key [book] in u'{}'
Original Traceback (most recent call last):
File "/home/bibla_devel/website/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/bibla_devel/website/django/template/debug.py", line 87, in render
output = force_unicode(self.filter_expression.resolve(context))
File "/home/bibla_devel/website/django/template/__init__.py", line 567, in resolve
arg_vals.append(arg.resolve(context))
File "/home/bibla_devel/website/django/template/__init__.py", line 686, in resolve
value = self._resolve_lookup(context)
File "/home/bibla_devel/website/django/template/__init__.py", line 739, in _resolve_lookup
raise VariableDoesNotExist("Failed lookup for key [%s] in %r", (bit, current)) # missing attribute
VariableDoesNotExist: Failed lookup for key [book] in u'{}'