Загрузка...

Setting up Django project development environment in Visual Studio Code | Tutorial Part #1

In this tutorial session, we will install Django in Visual Studio code. Note: Please watch all these tutorial for Django setup and Creating demo app and running on server. **Django Environment Setup VS Code tutorial | Tutorial Part #1 https://youtu.be/MmZTZb7bcwc **Django project creation and Server Setup | Tutorial Part #2 https://youtu.be/JzT_8cfgafo **Creating a simple Django app and running | Tutorial Part#3 https://youtu.be/0CAXhbn0jA0 About Django: It is a high-level Python framework for rapid, secure, and scalable web development. Prerequisites : *************** 1: we need to install python extension. 2: Install python version 3.9.1 or latest. https://youtu.be/G0XCD1EfZ2g 3: python.exe path must be set in 'path' environment variable. Creating a project environment for the Django *********************************************** First we will create a virtual environment in which Django is installed. Using a virtual environment avoids installing Django into a global Python environment and we will get exact control over the libraries used in an application. Step 1: Create a project folder on the file system, like 'project_django', and open it inside VS Code. Step 2: Run this command: python -m venv env Step 3: Open the Command Palette. Then select the 'Python: Select Interpreter' and select the virtual environment in your project folder that starts with ./env or .\env: Step 4: Open VS code terminal and run the following command to update pip: python -m pip install --upgrade pip Step 5: Now run the following command to install Django in the virtual environment. python -m pip install django #DjangoSetupVisualStudioCode #CoolITHelp

Видео Setting up Django project development environment in Visual Studio Code | Tutorial Part #1 автора Питоновый интеллект
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки