Django Framework – 2-Day Workshop: Proposed Topics
Day 1: Core Django Essentials & Backend Mastery (6 Hours)
1. Django Project Architecture
o Overview of project structure: settings.py, urls.py, wsgi.py, manage.py
o Understanding the difference between a Django project and app
2. URL Routing & Views
o Creating URL patterns using path() and include()
o Function-based vs Class-based views
3. Models & Database ORM
o Defining models and generating migrations
o Executing CRUD operations using Django ORM
o Admin panel customization for managing models
4. Forms & Validation
o Using Form and ModelForm
o Implementing client-side and server-side validation
o CSRF protection
5. User Authentication
o Implementing login, logout, and registration
o Using decorators like @login_required
o (Optional) Custom user models
Day 2: Real-World Integration & Advanced Concepts (6 Hours)
6. Templates & Frontend Integration
o Django template engine basics
o Template inheritance and structure
o Integrating Bootstrap for UI
7. Hands-on Mini Project
o Example: Blog System / Expense Tracker / Todo App
o Covering full cycle: models, views, templates, forms
8. Django REST Framework (Intro)
o REST API fundamentals
o Creating simple API endpoints with DRF
9. Deployment Basics
o Deploying Django projects to Heroku or PythonAnywhere
o Managing static and media files
o Using environment variables
10. Debugging & Best Practices
• Handling common Django errors
• Instructor’s insights and optimization tips
Optional Add-ons (Time Permitting) - Django Signals for automation - Custom Middleware
development - Unit Testing and Test-driven development in Django