0

我在 apache 的 error_logs 中收到以下错误,有人可以帮忙吗?

opt/Python-2.7.3/lib/python2.7/site-packages/django/conf/urls/defaults.py:3:弃用警告:django.conf.urls.defaults 已弃用;改用 django.conf.urls [Thu Jun 20 10:35:49 2013] [error] DeprecationWarning)

在浏览器级别

ImportError at /
No module named list_detail
Request Method: GET
Request URL:    http://codereview.zk.com/
Django Version: 1.5.1
Exception Type: ImportError
Exception Value:    
No module named list_detail
Exception Location: /opt/Python-2.7.3/lib/python2.7/site-packages/ReviewBoard-1.7.5-   py2.7.egg/reviewboard/reviews/views.py in <module>, line 22
Python Executable:  /usr/bin/python
Python Version: 2.7.3

在settings.py中设置

ALLOWED_HOSTS = ['localhost', '172.1623.20.1333']

4

1 回答 1

3

在 Django 1.5 中不再有 list_detail 模块。有 django.views.generic.list 模块。

你应该阅读迁移文档https://docs.djangoproject.com/en/1.4/topics/generic-views-migration/

于 2013-06-20T11:10:46.580 回答