Django

#env in VS Code

#create the working folder
c:\web

#install the virtual env
sudo apt-get install python3-venv # If needed

#setup the env in local folder
python -m venv env

#start the vs code in this folder
code .

#select the interpreter
ctrl+shift+p select python interpreter

#install django in this env
python -m pip install django

#create a web pages
django-admin startproject CollegeApplication .

#run the server
python manage.py runserver

 

#how to get the version

python

import django

django.VERSION

 

posted on 2020-06-04 10:54  荷树栋  阅读(148)  评论(0)    收藏  举报

导航