Environment setup before Django project creation

Install a virtual management environment

sudo apt install virtualenv

run in the project

virtualenv fruitenv

into the environment

source fruitenv/bin/activate

Note: In the default environment, there is no django and you need to build it yourself, and you need to install the required third-party packages yourself

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326093594&siteId=291194637