我正在使用 Django 1.5.1。一切都很好。但是一旦我通过 pip 安装了 django-photologue,当我访问管理 url 时就会遇到这个错误:
> **ViewDoesNotExist at /admin/**
Could not import django.views.generic.list_detail.object_list. Parent module django.views.generic.list_detail does not exist.
Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.5.1
Exception Type: ViewDoesNotExist
Exception Value:
Could not import django.views.generic.list_detail.object_list. Parent module django.views.generic.list_detail does not exist.
Exception Location: /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py in get_callable, line 104
Python Executable: /usr/bin/python
Python Version: 2.7.3
此外,当我运行 syncdb 时,photologue 与数据库同步没有任何错误,我可以将其导入 shell。
关于如何解决此错误的任何想法?