2011-11-01 77 views
1

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

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:  

回答

2

从Django的数据库日志的项目页面:

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

所以我简单地认为,这个项目是不兼容的Django 1.3.1由于各种弃用...

+0

有没有办法,我仍然可以安装它? – locoboy

+0

@ cfarm54:要么使用较老的Django版本,要么尝试修复它,以便与较新的Django配合使用。但是,我认为你应该试试django-sentry。你也可以问作者这个项目被放弃的原因是什么。 – plaes