Traceback most recent call last File webhomes fred django core handler

 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
47
48
Traceback (most recent call last):
File "/webhomes/fred/django/core/handlers/base.py", line 87, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/webhomes/fred/byteflow/apps/blog/views.py", line 43, in post_list
return object_list(request, *args, **kwargs)
File "/webhomes/fred/django/views/generic/list_detail.py", line 101, in object_list
return HttpResponse(t.render(c), mimetype=mimetype)
File "/webhomes/fred/django/template/__init__.py", line 176, in render
return self.nodelist.render(context)
File "/webhomes/fred/django/template/__init__.py", line 751, in render
bits.append(self.render_node(node, context))
File "/webhomes/fred/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/webhomes/fred/django/template/loader_tags.py", line 97, in render
return compiled_parent.render(context)
File "/webhomes/fred/django/template/__init__.py", line 176, in render
return self.nodelist.render(context)
File "/webhomes/fred/django/template/__init__.py", line 751, in render
bits.append(self.render_node(node, context))
File "/webhomes/fred/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Site matching query does not exist.
Original Traceback (most recent call last):
File "/webhomes/fred/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/webhomes/fred/byteflow/apps/lib/templatetags/links.py", line 40, in render
return absolutize_uri(context['request'], local_url)
File "/webhomes/fred/byteflow/apps/lib/helpers.py", line 19, in absolutize_uri
absolute_url = urlunsplit(request_url[:1] + (Site.objects.get_current().domain,) + request_url[2:])
File "/webhomes/fred/django/contrib/sites/models.py", line 22, in get_current
current_site = self.get(pk=sid)
File "/webhomes/fred/django/db/models/manager.py", line 82, in get
return self.get_query_set().get(*args, **kwargs)
File "/webhomes/fred/django/db/models/query.py", line 301, in get
% self.model._meta.object_name)
DoesNotExist: Site matching query does not exist.