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