Introduction to Django
Overview of Django
Setting up the environment
Installing Django
Creating a Django Project
Understanding Project Structure
Django Apps
Creating a Django App
Understanding App Structure
Adding App to Project
Django Models
Introduction to Models
Creating Models
Making & Applying Migrations
Django Admin Interface
Setting up Admin Interface
Registering Models in Admin
Customizing Admin Interface
Views and Templates
Introduction to Views
Function-based Views
Template Basics
Template Rendering
URLs and Routing
URL Dispatcher
Configuring URLs
Including App URLs
Static Files and Templates
Managing Static Files
Using CSS with Django
Template Inheritance
Organizing Templates
CRUD (Create, Read, Update, Delete)
Creating a form with Django forms
- Using built-in Django forms
- Handling form validation
- Using widgets in forms
Handling form submission
- Processing POST requests
- Using request.POST and request.FILES
- Displaying success/error messages
Saving data to the database
- Using save() method in models
- Handling ManyToMany relationships
- Using commit=False for customization
Reading data from the database
- Querying with ORM (filter, get, all)
- Displaying data in templates
- Using context data in views
Updating recorFive
- Pre-populating forms with instance data
- Handling partial updates
- Saving updated objects
Deleting recorFive
- Deleting objects from the database
- Handling delete confirmations
- Using success/error messages after delete
Django Forms and ModelForms
Creating and using Django Forms
- Customizing form fielFive
- Adding validations (clean methoFive)
Creating and using ModelForms
- Auto-generating forms from models
- Overriding default fielFive
- Saving related objects
Customizing forms
- Adding CSS classes and attributes
- Using Crispy Forms or custom templates
Django Generic Views
Introduction to generic views
Using ListView, DetailView, CreateView, UpdateView, DeleteView
Django Class-based Views
Introduction to class-based views
Converting function-based views to class-based views
Understanding mixins
User Authentication
Introduction to authentication
Using Django’s built-in authentication system
Creating a user registration form
User login and logout
User Permissions and Groups
Understanding permissions and groups
Assigning permissions to users and groups
Restricting access to views based on permissions
Custom User Model
Creating a custom user model
Extending the Django user model
Updating the authentication system to use the custom user model
Password Management
Password reset and change
Using Django’s built-in views for password management
Customizing password reset templates
User Profiles
Creating user profiles
Linking profiles to user accounts
Updating and displaying user profile information
Final Project
Creating a simple project incorporating CRUD operations and authentication
Implementing user registration, login, and profile management
Using class-based views and generic views
Styling the project using CSS and static files