我刚刚安装了 django sentry 并将其配置为使用 oracle 后端。不幸的是哨兵网络界面不能正常工作,在控制台上我可以看到这种类型的错误:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven-2.0.6-py2.7.egg/raven/utils/serializer/manager.py", line 69, in transform
return self.transform(repr(value))
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/template/context.py", line 29, in __repr__
return repr(self.dicts)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/template/context.py", line 29, in __repr__
return repr(self.dicts)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/db/models/query.py", line 72, in __repr__
data = list(self[:REPR_OUTPUT_SIZE + 1])
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/db/models/query.py", line 87, in __len__
self._result_cache.extend(self._iter)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/db/models/query.py", line 291, in iterator
for row in compiler.results_iter():
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/db/models/sql/compiler.py", line 763, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/db/models/sql/compiler.py", line 818, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/Django-1.4.1-py2.7.egg/django/db/backends/oracle/base.py", line 675, in execute
return self.cursor.execute(query, self._param_generator(params))
DatabaseError: ORA-00907: missing right parenthesis
我认为这个问题是由哨兵依赖的南引起的,并且对 oracle 后端只有 alpha 支持。有没有人有这方面的经验?
另外,如何查看 ORM 生成的实际 SQL 语句?如何配置哨兵才能看到?那将非常有帮助。