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

preview_player
Показать описание
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

**Django project creation and Server Setup | Tutorial Part #2

**Creating a simple Django app and running | Tutorial Part#3

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.


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
Рекомендации по теме
Комментарии
Автор

I've watched about every tutorial on youtube for this, but this one was the only one that worked!

Christina-eyrd
Автор

I love how easy to follow and digestible these tutorials are. As someone who's been browsing YouTube to get started, this is better than all the ones I've come across. Thank's a lot!

MT-gwvm
Автор

Fantastic...
This was fantastic... I was short for extensions part and you made it.

ashwani
Автор

If you are getting error messages while trying to create a virtual env, you could try restarting the terminal. Worked for me

kayodeogunrinde
Автор

After creating the virtual environment you have to activate it first then you can pip install any library inside it

dilumthusara
Автор

Hi Cool IT Help, For setting up django project environment tutorial part 1. I just couldnt get my virtual environment up. i follow every steps u said. i had even uninstall my python in case i got it wrong. but still cant get it.

Where could be the problem ?

yongwahkok
Автор

Hello. Good video but what if your VS Code is showing this
Uninstalling pip-20.2.3:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied:
Consider using the `--user` option or check the permissions.

johnallday
Автор

thanks a lot sir, i was facing issues regarding django from a long time this tutorial of urs helped me alot !

vasavin
Автор

can not seem to find anything on the internet addressing this error code. I have tried many times to update the pip upgrade. I do have python 3.9.1 and the two paths that you showed earlier, but I did not have the python 3.9.1 ('env') instead it just showed C:\Python39\python.exe in the pallette....

johnallday
Автор

Sir window 7 64 bit me python 9 support karega

inrsr
Автор

hello sir, am having problem at step 3, unable to find python:select interpreter. Please help

payalvasave
Автор

sir thank you for this tuitorial, can you make some tuitorial like this using pipenv? thanks a lot.

graduatingea
Автор

I am receiving "No module name venu" error after running python -m venu env command

Help me out from this

aashutoshlodhi