abbarnes icon

Django VSCode Setup Guide

abbarnes | PRO | 04/23/19 04:03:50 PM UTC | 0 ⭐ | 285 👁️ | Never ⏰ | []
text |

740 B

|

None

|

0 👍

/

0 👎

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

Comments