shishi1234
2016-04-14 11:17django + uwsgi + nginx 报错,求助
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
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- nginx + django + uwsgi 部署问题
- django
- nginx
- python
- mysql
- ubuntu
- 1个回答
- uWSGI +构建Go .so无法正常工作
- django
- uwsgi
- python
- excel
- 3个回答
- 如何指定uwsgi在启动时默认的python版本
- django
- python
- 3个回答
- 【没有C币有大神看不】celery一处理任务就报错,报错信息里说的没有反向怎么破?
- django
- python
- 2个回答
- CentOS7.2+Django1.8+Nginx+uwsgi部署
- django
- python
- centos
- 2个回答