Before You Begin: Python Must Be Installed
Django requires Python. If you see these errors:
python is not recognized pip is not recognized
Your Python is missing or PATH is not set.
π Install Python correctly using this full step-by-step guide:
Install Python β Beginner Guide
- Install Python (latest version)
- Check βAdd Python to PATHβ β
- Verify installation with: python --version
- Fix errors easily with the guide
What You Will Learn in This Tutorial
- Check Python & pip installation
- Install Django using pip
- Create your first Django project
- Understand core Django files
- Run Django server on localhost
- Fix common setup errors
Video Tutorial
Step 1: Check Python & Pip
Run this in CMD:
python --version pip --version
If version numbers appear β You're ready.
Step 2: Install Django
Install Django globally or inside a virtual environment.
pip install django
Verify Django installation:
django-admin --version
Step 3: Create Your Django Project
Navigate to Desktop:
cd Desktop
Create project named dproject:
django-admin startproject dproject cd dproject
Project files include:
- manage.py β Django command tool
- settings.py β Project configuration
- urls.py β Routing
- wsgi/asgi β Server interface
Step 4: Run Django Server
python manage.py runserver
Open in browser:
http://127.0.0.1:8000/
You should see the Django success page π