- 安装django应用的python module依赖,同时安装gunicorn
$ cat pip_requirements.txt
django
psycopg2-binary
dj.choices
suds-py3
requests
pysmb
redis
lxml
django-cors-headers
gunicorn
$ pip install -r pip_requirements.txt
- 确保django server可以正常启动
$ python manage.py runserver 0.0.0.0:8000
- 使用gunicorn启动uwsgi 文件
$ gunicorn <PROJECT>.wsgi -b "0.0.0.0:8000"