-
Module-1 1
-
-
Module-2 1
-
-
Module-3 1
-

Web Development with Django
Django is a Python-based free and open-source web framework which follows the model-template-views architectural pattern. Django can make it easy to build better web applications very quickly with less code.
Objective
Introduction to Django
- What Is a Web Framework?
- The MVC & MVT Design Pattern
- Django’s History
Installation of Django
- Installing Django
- Setting Up a Database
- Starting a Project.
- The Development Server
- Django Commands Overview
The Basics of Dynamic Web Pages
- Your First View: Dynamic Content
- Mapping URLs to Views
- How Django Processes a Request
- URL configurations and Loose Coupling
- 404 Errors
- Your Second View: Dynamic URLs
- A Word About Pretty URLs
- Wildcard URL patterns
- Django’s Pretty Error Pages
Django Templates
- Template System Basics
- Using the Template System
- Creating Template Objects
- Rendering a Template
- Multiple Contexts, Same Template
- Context Variable Lookup
- Playing with Context Objects
- Basic Template Tags and Filters Tags
- Using Templates in Views
- Template Loading
- Render to response ()
- The locals () Trick
- Subdirectories in get template ()
- They include Template Tag.
- Template Inheritance
Interacting with a Database: Models
- The MTV Development Pattern
- Configuring the Database
- Your First App
- Defining Models in Python
- Your First Model
- Installing the Model
- Basic Data Access
- Adding Model String Representations
- Inserting and Updating Data
- Selecting Objects
- Filtering Data
- Retrieving Single Objects
- Ordering Data
- Chaining Lookups
- Slicing Data
- Deleting Objects
- Making Changes to a Database Schema
- Adding Fields
- Removing Fields
- Removing Models
The Django Administration Site
- Activating the Admin Interface
- Using the Admin Interface
- Users, Groups and Permissions
- Customizing the Admin Interface
- Customizing the Admin Interface’s Look and Feel
- Customizing the Admin Index Page
- When and Why to Use the Admin Interface
Form Processing
- Adding Form
- Adding Base Template to Form
- Implementing the Edit Functionality
- Implementing Delete Functionality
Case Studies
-
- NA
Prev
Python Programming