Initial Setup Up Django on Visual Studio Code

Опубликовано: 02 Октябрь 2022
на канале: 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)


На этой странице сайта вы можете посмотреть видео онлайн Initial Setup Up Django on Visual Studio Code длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Pricher Samane 02 Октябрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,264 раз и оно понравилось 59 зрителям. Приятного просмотра!