Initial Setup Up Django on Visual Studio Code

Published: 02 October 2022
on channel: Pricher Samane
1,264
59

About preparation Visual Studio Code for Django Coding. Install python, add-ons VSC and make Virtual Environment for Django.

Several Step in this tutorial:
1. Download and install python in your PC. Don't forget to add python path in your installation.

2. Add add-ons/extension in Visual Studio Code.

3. Open settings.json
Press Ctrl+Shit+P and type Settings.json
In Settings.json type "editor.formatOnSave": true

4. Open terminal in VSC
Press CTRL+` then install using PIP:
python -m pip install --upgrade pip
pip install autopep8 pylint pylint-django

5. In Settings.json we add:
"python.formatting.provider": "autopep8",
"python.linting.enabled": true,
"python.linting.lintOnSave": true,

6. Add Django’s Extension from Baptiste Darthenay

7. Add SQLite ‘s Extension from alexcvzz

8. Add Beauty’s Extension from HookyQR, "Even though No Longer Maintained but many user use it"

9. Make Virtual Environment with name “venv1”
Go to your Django project folder and type:
python -m venv venv1

10. Choose Python Interpreter in Command Palette (press Shift+Ctrl + P)
Choose venv1

11. Open New terminal with press Shift+Ctrl+ '

12. If PowerShell error:
Open Powershell as administrator and type:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
After that type A

13. Close and open new terminal, press ctrl+ shift + '

14. Install Django in venv1, type
pip install django

15. Install Postgresql, type
pip install psycopg2

16. Install Mysql:
python -m pip install mysqlclient

17. Install Pillow for static file, type
python -m pip install Pillow


if(life and programming):
print("Better Life)


On this page of the site you can watch the video online Initial Setup Up Django on Visual Studio Code with a duration of hours minute second in good quality, which was uploaded by the user Pricher Samane 02 October 2022, share the link with friends and acquaintances, this video has already been watched 1,264 times on youtube and it was liked by 59 viewers. Enjoy your viewing!