mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-24 20:28:02 -08:00
use venv instead of virtualenv
This commit is contained in:
@@ -109,12 +109,11 @@ django-admin version # display the current django version
|
||||
|
||||
|
||||
# 1. $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; python3 get-pip.py
|
||||
# 2. $ pip install virtualenv
|
||||
# 3. $ mkdir django-projects
|
||||
# 4. $ cd django-projects
|
||||
# 5. $ virtualenv venv
|
||||
# 6. $ source venv/bin/activate
|
||||
# 7. $ pip install django
|
||||
# 8. $ django-admin startproject myproject
|
||||
# 9. $ django-admin startapp myapp
|
||||
# 10. $ python manage.py runserver
|
||||
# 2. $ mkdir django-projects
|
||||
# 3. $ cd django-projects
|
||||
# 4. $ python3 -m venv .venv
|
||||
# 5. $ source .venv/bin/activate
|
||||
# 6. $ pip install django
|
||||
# 7. $ django-admin startproject myproject
|
||||
# 8. $ django-admin startapp myapp
|
||||
# 9. $ python manage.py runserver
|
||||
|
||||
Reference in New Issue
Block a user