我正在使用
django-registration v0.7和django 1.2.4.一切正常,但我想知道为什么每次运行服务器时都会收到此警告消息:
C:\Python26\lib\site-packages\registration\models.py:4: DeprecationWarning: the sha module is deprec
ated; use the hashlib module instead
import sha
将来可能是个问题?我可以在不改变django-registration原始代码的情况下避免它吗?
编辑
这个弃用警告出现在Python 2.6.2中
最佳答案 不,如果有效,请留下.当您升级到实际删除此模块的新版本的Python时,您可以考虑这个问题.
不推荐使用意味着鼓励您不要在新代码中使用它,这并不意味着您需要修改(并因此破坏)使用它的现有代码.