Wednesday, 7 January 2026

Django Module #1 – Introduction & Setup (HTML with Copy Button)

Django Module 1 – Introduction & Setup

๐Ÿ“˜ Django Tutorial – Module 1

Topic: Introduction & Environment Setup


๐ŸŽฏ Learning Objectives

  • Understand what Django is
  • Install Django
  • Create virtual environment
  • Run first Django server

๐Ÿ”น Step 1: Create Virtual Environment


python -m venv venv
venv\Scripts\activate
  

๐Ÿ”น Step 2: Install Django


pip install django
  

๐Ÿ”น Step 3: Verify Django Installation


django-admin --version
  

๐Ÿ”น Step 4: Create Django Project


django-admin startproject mysite
cd mysite
python manage.py runserver
  

๐ŸŒ Output

Open browser and visit:


http://127.0.0.1:8000/
  

๐Ÿงช Student Practice

  • Change server port to 9000
  • Stop and restart the server

❓ Viva Questions

  1. What is Django?
  2. Why do we use virtual environment?
  3. What is the purpose of manage.py?

No comments:

Post a Comment

Django #7a Project Sample

Employee Management System – Django (HRMS) Employee Management System (Django + MySQL) Roles: Admin, HR, Employee 1....