ubuntu server deployment django project

1. Install Nginx

  sudo apt-get install nginx

2. Install python3

  If there is no general ubuntu comes with python

3. Configure project environment

  3.1 Installation django

    python3 -m pip install django==2.0.5

  3.2 Installation djangorestframework

    python3 -m pip install djangorestframework

  3.3 Installation pymysql

     python3 -m pip install pymysql

  3.4 installation Pillow

    python3 -m pip install Pillow

Guess you like

Origin www.cnblogs.com/xingxingnbsp/p/11841172.html