我在AWS上设置了Ubuntu 14.04中的应用程序- > NGINX - > UWSGI - > DJANGO APP.当使用sqllite3时,应用程序运行完全正常,但是当我使用django.db.backends.postgresql_psycopg2w作为我的数据库引擎时,它无法加载,我在uwsgi日志中找到了这个:
- *** Starting uWSGI 2.0.12 (64bit) on [Mon Jan 18 05:36:25 2016] ***
- compiled with version: 4.8.4 on 18 January 2016 04:10:30
- os: Linux-3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015
- nodename: ip-172-31-55-58
- machine: x86_64
- clock source: unix
- detected number of CPU cores: 1
- current working directory: /var/www/carzumer_api
- detected binary path: /usr/local/bin/uwsgi …
Run Code Online (Sandbox Code Playgroud)