-1

当我运行我的 Django 应用程序时,我收到以下错误:

   ViewDoesNotExist at /
    Could not import sales.views. Error was: cannot import name pbkdf2
    Request Method: GET
    Request URL:    localhost:8000/
    Django Version: 1.3.2
    Exception Type: ViewDoesNotExist
    Exception Value:    
    Could not import sales.views. Error was: cannot import name pbkdf2
    Exception Location: /usr/lib/python2.7/site-packages/django/core/urlresolvers.py in _get_callback, line 167
    Python Executable:  /usr/bin/python
    Python Version: 2.7.3
    Python Path:    
    ['/home/rodrigo/Develop/Projects/SaleSystem/sales',
     '/usr/lib64/python27.zip',
     '/usr/lib64/python2.7',
     '/usr/lib64/python2.7/plat-linux2',
     '/usr/lib64/python2.7/lib-tk',
     '/usr/lib64/python2.7/lib-old',
     '/usr/lib64/python2.7/lib-dynload',
     '/usr/lib64/python2.7/site-packages',
     '/usr/lib64/python2.7/site-packages/PIL',
     '/usr/lib64/python2.7/site-packages/gst-0.10',
     '/usr/lib64/python2.7/site-packages/gtk-2.0',
     '/usr/lib/python2.7/site-packages',
     '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

为什么会这样?

4

3 回答 3

1

解决。这是 django 版本(1.3 和 1.4)之间的冲突。

于 2012-08-14T03:17:14.737 回答
0

你有没有尝试过

pip install pbkdf2
于 2012-08-13T16:26:05.000 回答
0

看来,在您的 views.py 中,您尝试导入 pbkdf2,但失败了。你能在views.py中复制你的导入吗

您是否尝试过从 shell 中在 python 中进行此导入?

于 2012-08-13T16:28:21.983 回答