Django Training with Digital Pathshala – Syllabus
Cover page
Table of Contents
1. Week 1: Python Basics (Days 1–6) ........................................................................... 1
1.1. Day 1: Python Fundamentals ........................................................................... 1
1.2. Day 2: Control Flow ......................................................................................... 1
1.3. Day 3: Data Structures ..................................................................................... 1
1.4. Day 4: Functions ............................................................................................. 1
1.5. Day 5: OOP Basics .......................................................................................... 1
1.6. Day 6: Error Handling and File Handling ............................................................ 1
2. Week 2: Django Basics (Days 7–12) .......................................................................... 1
2.1. Day 7: Introduction to Django ........................................................................... 1
2.2. Day 8: Django Project Structure ........................................................................ 1
2.3. Day 9: URLs and Views .................................................................................... 2
2.4. Day 10: Templates ........................................................................................... 2
2.5. Day 11: Models and Migrations ......................................................................... 2
2.6. Day 12: Querying the Database ........................................................................ 2
3. Week 3: Django REST Framework Basics (Days 13–18) .............................................. 2
3.1. Day 13: Introduction to REST APIs and DRF ....................................................... 2
3.2. Day 14: Serializers ........................................................................................... 2
3.3. Day 15: Function-Based Views (FBVs) ............................................................... 2
3.4. Day 16: Routers and URLs ................................................................................ 2
3.5. Day 17: Query Parameters ............................................................................... 3
3.6. Day 18: Class-Based Views (CBVs) ................................................................... 3
4. Week 4: Advanced DRF (Days 19–24) ....................................................................... 3
4.1. Day 19: Viewsets ............................................................................................. 3
4.2. Day 20: Authentication .................................................................................... 3
4.3. Day 21: Permissions ........................................................................................ 3
4.4. Day 22: Relationships and Nested Serializers .................................................... 3
4.5. Day 23: Pagination ........................................................................................... 3
4.6. Day 24: File Uploads ........................................................................................ 3
5. Week 5: API Optimization and Deployment (Days 25–30) .......................................... 4
5.1. Day 25: Throttling and Rate Limiting .................................................................. 4
5.2. Day 26: Middleware and Signals ....................................................................... 4
5.3. Day 27: Testing APIs ......................................................................................... 4
5.4. Day 28: Deployment Basics ............................................................................. 4
5.5. Day 29: Capstone Project - Setup ..................................................................... 4
5.6. Day 30: Capstone Project - Build & Deploy ........................................................ 4
6. Deploy the project and review ................................................................................. 4
Django Training Session Digital Pathshala
1. Week 1: Python Basics (Days 1–6)
1.1. Day 1: Python Fundamentals
• Introduction to Python and its uses.
• Setting up Python and IDE.
• Variables, data types, and basic input/output.
1.2. Day 2: Control Flow
• Conditional statements (if, else, elif).
• Loops: for and while.
1.3. Day 3: Data Structures
• Lists, tuples, and dictionaries.
• Basic operations: adding, removing, iterating.
1.4. Day 4: Functions
• Defining and calling functions.
• Parameters, return values, and default arguments.
1.5. Day 5: OOP Basics
• Classes, objects, and attributes.
• Methods and constructors.
1.6. Day 6: Error Handling and File Handling
• Exception handling (try, except).
• Reading and writing files.
2. Week 2: Django Basics (Days 7–12)
2.1. Day 7: Introduction to Django
• What is Django, and why use it?
• Setting up a Django project and virtual environment.
2.2. Day 8: Django Project Structure
• Understanding project and app structure.
pg. 1
Django Training Session Digital Pathshala
• Creating and running a Django app.
2.3. Day 9: URLs and Views
• Configuring URLs and writing views.
• Returning HTTP responses.
2.4. Day 10: Templates
• Rendering HTML templates.
• Template syntax basics (variables, filters, loops).
2.5. Day 11: Models and Migrations
• Defining models and creating migrations.
• Exploring the Django Admin panel.
2.6. Day 12: Querying the Database
• Using Django ORM for basic CRUD operations.
• Querysets and filtering data.
3. Week 3: Django REST Framework Basics (Days 13–18)
3.1. Day 13: Introduction to REST APIs and DRF
• What are REST APIs?
• Setting up Django REST Framework.
• Creating your first API endpoint.
3.2. Day 14: Serializers
• Introduction to DRF serializers.
• Writing basic serializers for models.
3.3. Day 15: Function-Based Views (FBVs)
• Writing GET, POST, PUT, and DELETE APIs using FBVs.
3.4. Day 16: Routers and URLs
• Configuring API URLs with DRF routers.
pg. 2
Django Training Session Digital Pathshala
3.5. Day 17: Query Parameters
• Handling query parameters in APIs.
• Filtering, searching, and ordering data.
3.6. Day 18: Class-Based Views (CBVs)
• Writing APIs using CBVs.
• Difference between FBVs and CBVs.
4. Week 4: Advanced DRF (Days 19–24)
4.1. Day 19: Viewsets
• Simplifying APIs with ModelViewSet.
4.2. Day 20: Authentication
• Implementing basic and token authentication.
• Securing endpoints.
4.3. Day 21: Permissions
• Applying built-in permissions (AllowAny, IsAuthenticated, etc.).
• Creating custom permissions.
4.4. Day 22: Relationships and Nested Serializers
• Serializing related fields (ForeignKey, ManyToMany).
• Writing nested serializers.
4.5. Day 23: Pagination
• Adding pagination to APIs.
• Using PageNumberPagination and LimitOffsetPagination.
4.6. Day 24: File Uploads
• Handling file and image uploads in APIs.
pg. 3
Django Training Session Digital Pathshala
5. Week 5: API Optimization and Deployment (Days 25–30)
5.1. Day 25: Throttling and Rate Limiting
• Adding throttling to APIs.
• Customizing throttling rules.
5.2. Day 26: Middleware and Signals
• Writing custom middleware.
• Using signals for real-time actions (e.g., email on user creation).
5.3. Day 27: Testing APIs
• Writing tests for API endpoints using APITestCase.
5.4. Day 28: Deployment Basics
• Preparing the project for deployment.
• Deploying APIs to Heroku or PythonAnywhere.
5.5. Day 29: Capstone Project - Setup
• Define the project structure and requirements.
• Examples: Blog API, To-Do API, or E-Commerce backend.
5.6. Day 30: Capstone Project - Build & Deploy
• Create CRUD endpoints for the project.
• Apply authentication, permissions, and pagination.
6. Deploy the project and review
pg. 4