python - 安装 django 数据库日志

标签 python django

我尝试从这里安装 django db log https://github.com/dcramer/django-db-log ,通过运行python setup.py install,但由于某种原因,当我将应用程序添加到settings.py文件时,它不起作用。这是我收到的错误:

Request Method:     GET
Request URL:    http://localhost:8000/admin/
Django Version:     1.3.1
Exception Type:     ImportError
Exception Value:    

cannot import name Paginator

Exception Location:     /Library/Python/2.6/site-packages/django/utils/importlib.py in import_module, line 35
Python Executable:  /usr/bin/python
Python Version:     2.6.1
Python Path:    

['/Users/christopherfarm/Desktop/ecomstore',
 '/Library/Python/2.6/site-packages/python_dateutil-1.5-py2.6.egg',
 '/Library/Python/2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg',
 '/Library/Python/2.6/site-packages/django_db_log-2.2.1-py2.6.egg',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
 '/Library/Python/2.6/site-packages',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode']

Server time:    

最佳答案

来自 django-db-log 的项目页面:

This project is no longer updated. Please see http://github.com/dcramer/django-sentry for its successor

所以我只是假设这个项目由于各种弃用而与 Django-1.3.1 不兼容......

关于python - 安装 django 数据库日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7963387/

相关文章:

python - 将 System.Double[] 转换为 Python

django - 从 Django View 使用 django-piston REST API 的最佳方式是什么?

python - 没有初始数据的 Django 表单集

json - Django休息框架: Deserializing and get the primary key from validated_data

python - 如何修复 'invalid syntax for type timestamp' Postgres?

python - 在注释中组合 F 和 Count 时,Django "Unknown column in having clause"

python - 通过python将目录中的图片发布到tumblr

python - socket.recv() 什么时候引发异常?

Django 1.8 & Django Crispy Forms : Is there a simple, 实现日期选择器的简单方法?

django - MyModel.objects.update_or_create() --> Boolean 数据是否更新?