简体   繁体   English

Apache Django settings.py错误

[英]Apache Django settings.py error

I am getting following error in error_logs of apache, can anyone help? 我在Apache的error_logs中遇到以下错误,有人可以帮忙吗?

opt/Python-2.7.3/lib/python2.7/site-packages/django/conf/urls/defaults.py:3: DeprecationWarning: django.conf.urls.defaults is deprecated; opt / Python-2.7.3 / lib / python2.7 / site-packages / django / conf / urls / defaults.py:3:弃用警告:django.conf.urls.defaults已弃用; use django.conf.urls instead [Thu Jun 20 10:35:49 2013] [error] DeprecationWarning) 请改用django.conf.urls [2013年6月20日星期四10:35:49] [错误] DeprecationWarning)

and at browser level 在浏览器级别

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

set in settings.py 在settings.py中设置

ALLOWED_HOSTS = ['localhost', '172.1623.20.1333'] ALLOWED_HOSTS = ['localhost','172.1623.20.1333']

In Django 1.5 there is no list_detail module anymore. 在Django 1.5中,不再有list_detail模块。 There is django.views.generic.list module. 有django.views.generic.list模块。

You shoud read migration document https://docs.djangoproject.com/en/1.4/topics/generic-views-migration/ 您应该阅读迁移文档https://docs.djangoproject.com/en/1.4/topics/generic-views-migration/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM