Django

Django Course

It enables rapid development of secure and maintainable websites.

  •   12 Months

What Will You Learn?

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.

Course Curriculum

  • What Is a Web Framework? The MVC Design Pattern Django’s History

  • Installing Python Installing Django Setting Up a Database Starting a Project. The Development Server Django Commands Overview

  • 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

  • Template System Basics Using the Template System Creating Template Objects Rendering a Template Multiple Contexts, Same Template Context Variable Lookup Playing with Context Objects Philosophies and Limitations Using Templates in Views Template Loading render_to_response() The locals() Trick Subdirectories in get_template() The include Template Tag. Template Inheritance

  • The “Dumb” Way to Do Database Queries in Views 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 Many to Many Fields Removing Models

  • 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

  • Search The “Perfect Form” Creating a Feedback Form Processing the Submission Custom Validation Rules A Custom Look and Feel Creating Forms from Models

  • URL configuration Tricks. Streamlining Function Imports Using Multiple View Prefixes Special-Casing URLs in Debug Mode Using Named Groups Understanding the Matching/Grouping Algorithm Passing Extra Options to View Functions Using Default View Arguments Special-Casing Views Capturing Text in URLs Determining What the URL configuration Searches Against Including Other URL configurations How Captured Parameters Work with include() How Extra URL configurations Options Work with include() Section II : Django Sub Framework

  • Using Generic Views Generic Views of Objects Extending Generic Views Making “Friendly” Template Contexts Adding Extra Context Viewing Subsets of Objects Complex Filtering with Wrapper Functions Performing Extra Work

  • Template Language Review Request Context and Context Processors django.core.context_processors.auth django.core.context_processors.debug django.core.context_processors.i18n django.core.context_processors.request Guidelines for Writing Your Own Context Processors Inside Template Loading Extending the Template System Creating a Template Library Writing Custom Template Filters Writing Custom Template Tags Shortcut for Simple Tags Inclusion Tags Writing Custom Template Loaders Using the Built-in Template Reference Configuring the Template System in Standalone Mode

  • The Basics: Views and MIME Types Producing CSV Generating PDFs Installing Report Lab Writing Your View Complex PDFs Other Possibilities The Syndication Feed Framework Initialization A Simple Feed A More Complex Feed Specifying the Type of Feed Enclosures Language URLs Publishing Atom and RSS Feeds in Tandem The Sitemap Framework Installation Initialization Sitemap Classes Shortcuts Creating a Sitemap Index. Pinging Google

  • Cookies Getting and Setting Cookies The Mixed Blessing of Cookies Django’s Session Framework Enabling Sessions Using Sessions in Views Setting Test Cookies Using Sessions Outside of Views When Sessions Are Saved Browser-Length Sessions vs Persistent Sessions Other Session Settings Users and Authentication Enabling Authentication Support Using Users Logging In and Out Limiting Access to Logged-in Users Limiting Access to Users Who Pass a Test Managing Users, Permissions and Groups Using Authentication Data in Templates The Other Bits: Permissions, Groups, Messages and Profiles Permissions Groups Messages Profiles