django.core.exceptions.ImproperlyConfigured: Requested setting CACHES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
unable to load app 0 (mountpoint='') (callable not found or import error)
--- no python application found, check your startup logs for errors ---
[pid: 26804|app: -1|req: -1/2] 192.168.54.190 () {46 vars in 800 bytes} [Thu Apr 14 19:14:48 2016] GET /favicon.ico => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
一直报这个错误。
请问,如何解决。
nginx配置如下:
include uwsgi_params;
uwsgi_pass 127.0.0.1:8003;
uwsgi_param UWSGI_MODULE manage;
uwsgi_param UWSGI_SCRIPT urls.py;
uwsgi配置如下:
[uwsgi]
socket = 127.0.0.1:8003
plugins = python
master = true
vhost = false
#wsgi-file = /data/www/spider/web/www/www/wsgi.pv
socket=127.0.0.1:8003
workers = 1
chdir=/web/www/www
post-buffering=4096
#Edaemonize=/tmp/aaa.log
#module=django.core.handlers.wsgi.WSGIHandler
debug=true