abbarnes

Django VSCode Setup Guide

Apr 23rd, 2019
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Django/VSCode Setup Guide [Windows 10]
  2.  
  3. 1. Create folder & open with VSCode
  4.  
  5. 2. Setup Virtual Environment
  6. a. [optional] Ensure python>=3.0: python --version
  7. b. python -m venv VENV
  8. c. VENV\Scripts\activate [IMPORTANT: use backslash only after VENV]
  9. d. Choose interpreter: cntrl-shift-p > select interpreter with VENV
  10.  
  11. 3. Setup Version Control
  12. a. git init
  13. b. Create .gitignore
  14. c. Copy text from gitignore.io for Django file. Add /VENV to environment section
  15. d. Use VSCode to stage and do initial commit
  16.  
  17. 4. Install dependencies
  18. a. pip install Django
  19. b. pip install “selenium<4.0”
  20. c. Check install
  21. d. note: must have geckodriver previously installed and on windows PATH
  22.  
  23. 5. Run Server
  24. a. python manage.py runserver
Advertisement
Add Comment
Please, Sign In to add comment