Django Setup Made Simple: A Beginner's Tutorial


what is “django”.
Django is a free and open-source, Python-based web framework that runs on a web server. it follows the model–template–views architectural pattern.
you can make better web-apps quickly,easier and in less code.it has some security features inbuilt which makes it secure by default.
Django works better with the scalable apps.It works better than others when run scalable app on minimum systems.
Installing/set-up on System.
You can install django on you local system openly.but what recommended is to create the django environment virtually just like a sandbox in which we are working on so it separately from the main system.
how to create a virtual environment ?
to create open folder and type for following command using python.\
python -m venv .venv
python -m venv
(this is command)
.venv
(This is the folder in which you want to make the environment).
This is the standard way to done the work.
what the catch.
We are using the new approach which is usning “uv“.
What is “uv”.
Just like in MERN Node can handle all the packages and Manages the because of course its a Package Manager’s wrok. In python we have pip in python’s side.
but is MERN side There is another option “bun“ which is written on rust is a alternate for Node and its much faster. in the python’s side uv is a alternate of pip which is also writter in “rust” is a faster altername for pip.
how to install “uv”.
linux
if you have pip install already then use pip install uv
.
Alternatively.
curl -LsSf
https://astral.sh/uv/install.sh
| less
Windows.
powershell -c "irm
https://astral.sh/uv/install.ps1
| more"
how to setUp using “uv”
use uv venv
for create a virtual environment using pip. After that you have created a new folder names “.venv“. in which you have 2 folders named “bin“ and “lib“.
Now you have to activate the virtual environment.
use source .venv/bin/activate
on linux or mac and use for activating the virtual environment and on Windows use .venv\Script\activate
.
And if you want to deactivate the virtual Environment use command deactivate
Now we install the django inside the VE.
while activating inside the VE.
Linux / macOs:
uv pip install Django
Windows:
uv pip install Django
now you django is install in you virtual Environment.
fire up the engine.
now you have to start the project using the command:
django-admin startproject foldername
now you have two folders create by this
foldername (have a file manage.py) → foldername → (have files inti)
Run the server
first go inside the folder in first level where and run the manage.py. and run the command below.
python manage.py runserver
You will see some thing like this.
August 03, 2025 - 19:03:22 Django version 5.2.4, using settings 'firstDjango.settings' Starting development server at
http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Now go on that link and you will see some thing like this:
if you are seeing this CONGRATULATION you are in.
Peace ✌️.
Subscribe to my newsletter
Read articles from Bhavesh Sharma directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Bhavesh Sharma
Bhavesh Sharma
i am currently starts to learning new things as you can check my progress in blogs.