Environment Request Method GET Request URL http 127 8000 blog Django V

  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
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/blog/
Django Version: 1.0-alpha-SVN-unknown
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.sitemaps',
'django.contrib.flatpages',
'django.contrib.markup',
'lib',
'pytils',
'accounts',
'blog',
'discussion',
'openidconsumer',
'pingback',
'tagging',
'typogrify',
'render',
'robots',
'textblocks',
'livejournal',
'blogroll',
'openidserver',
'recaptcha',
'debug',
'sape',
'watchlist']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'lib.threadlocals.ThreadLocalsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'middleware.url.UrlMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'middleware.redirect.RedirectMiddleware',
'openidconsumer.middleware.OpenIDMiddleware',
'django.middleware.doc.XViewMiddleware',
'middleware.ajax_errors.AjaxMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'middleware.profile.ProfilerMiddleware')
Template error:
In template d:\install\pythonsoft\byteflow-blog-engine-3c240c9e2ecf\themes\lite\blog\sidebar.html, error at line 61
Caught an exception while rendering: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'"order"\' at line 2')
51 : <div class="block">
52 : <div class="header"><span>{% trans "Tags" %}</span></div>
53 : <ul class="tag-cloud">
54 : {% tag_cloud_for_model blog.post as tags %}
55 : {% render_tag_cloud tags %}
56 : </ul>
57 : </div>
58 :
59 : <div class="block">
60 : <div class="header"><span>{% trans "Blogroll" %}</span></div>
61 : {% blogroll_links %}
62 : </div>
63 :
64 : {% if settings.ENABLE_SAPE %}
65 : {% load sape_extras %}
66 : <div class="block advertize">
67 : <div class="header"><span>{% trans "Advertize" %}</span></div>
68 : <ul>
69 : {% sape_links_list request %}
70 : </ul>
71 : </div>
Traceback:
File "C:\Python25\Lib\site-packages\django\core\handlers\base.py" in get_response
87. response = callback(request, *callback_args, **callback_kwargs)
File "D:\Install\pythonsoft\Byteflow-Blog-Engine-3c240c9e2ecf\..\Byteflow-Blog-Engine-3c240c9e2ecf\apps\blog\views.py" in post_list
43. return object_list(request, *args, **kwargs)
File "C:\Python25\Lib\site-packages\django\views\generic\list_detail.py" in object_list
101. return HttpResponse(t.render(c), mimetype=mimetype)
File "C:\Python25\Lib\site-packages\django\template\__init__.py" in render
176. return self.nodelist.render(context)
File "C:\Python25\Lib\site-packages\django\template\__init__.py" in render
751. bits.append(self.render_node(node, context))
File "C:\Python25\lib\site-packages\django\template\debug.py" in render_node
71. result = node.render(context)
File "C:\Python25\Lib\site-packages\django\template\loader_tags.py" in render
97. return compiled_parent.render(context)
File "C:\Python25\Lib\site-packages\django\template\__init__.py" in render
176. return self.nodelist.render(context)
File "C:\Python25\Lib\site-packages\django\template\__init__.py" in render
751. bits.append(self.render_node(node, context))
File "C:\Python25\lib\site-packages\django\template\debug.py" in render_node
71. result = node.render(context)
File "C:\Python25\Lib\site-packages\django\template\__init__.py" in render
908. autoescape=context.autoescape))
File "C:\Python25\Lib\site-packages\django\template\__init__.py" in render
751. bits.append(self.render_node(node, context))
File "C:\Python25\lib\site-packages\django\template\debug.py" in render_node
81. raise wrapped
Exception Type: TemplateSyntaxError at /blog/
Exception Value: Caught an exception while rendering: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'"order"\' at line 2')
Original Traceback (most recent call last):
File "C:\Python25\lib\site-packages\django\template\debug.py", line 71, in render_node
result = node.render(context)
File "C:\Python25\Lib\site-packages\django\template\__init__.py", line 898, in render
dict = func(*args)
File "D:\Install\pythonsoft\Byteflow-Blog-Engine-3c240c9e2ecf\..\Byteflow-Blog-Engine-3c240c9e2ecf\apps\blogroll\templatetags\blogroll_extras.py", line 24, in blogroll_links
cursor.execute(query)
File "C:\Python25\lib\site-packages\django\db\backends\util.py", line 18, in execute
return self.cursor.execute(sql, params)
File "C:\Python25\lib\site-packages\MySQLdb\cursors.py", line 166, in execute
self.errorhandler(self, exc, value)
File "C:\Python25\lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'"order"\' at line 2')