The case of the Django framework, python2 and python3 coexistence, create Django project

A case python2 python3 coexist and used directly 

django-admin startproject Django-project 

this time the system is used by default python2 created, probably due to python2 not Django installation error.

Here you can create a Django project using the absolute path
E: \ Python3 \ Scripts \ django -admin startproject guest

Second, the use pycharm create a Django project, fill in the corresponding information, OK

 

Guess you like

Origin www.cnblogs.com/nieliangcai/p/11712080.html