Traceback most recent call last File usr local lib python2 dist-packag

 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
49
50
51
52
53
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 279, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 651, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 245, in __call__
response = middleware_method(request, response)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/flatpages/middleware.py", line 10, in process_response
return flatpage(request, request.path_info)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/flatpages/views.py", line 46, in flatpage
response = HttpResponse(t.render(c))
File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py", line 178, in render
return self.nodelist.render(context)
File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py", line 779, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py", line 81, in render_node
raise wrapped
TemplateSyntaxError: Caught an exception while rendering: ('unexpected indent', ('/home/yegor/django-pr/opentodo/parse/views.py', 24, 1, "\ttext_tbl = text_tbl.replace('<TD', '<td')\n"))
Original Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/usr/local/lib/python2.6/dist-packages/django/template/defaulttags.py", line 370, in render
url = reverse(self.view_name, args=args, kwargs=kwargs, current_app=context.current_app)
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 341, in reverse
*args, **kwargs)))
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 275, in reverse
possibilities = self.reverse_dict.getlist(lookup_view)
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 195, in _get_reverse_dict
self._populate()
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 187, in _populate
lookups.appendlist(pattern.callback, (bits, p_pattern))
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 131, in _get_callback
self._callback = get_callable(self._callback_str)
File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 130, in wrapper
result = func(*args)
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 58, in get_callable
lookup_view = getattr(import_module(mod_name), func_name)
File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/yegor/django-pr/opentodo/parse/views.py", line 24
text_tbl = text_tbl.replace('<TD', '<td')
^
IndentationError: unexpected indent