Beginning Django : web application development and deployment with Python /
Discover the Django web application framework and get started building Python-based web applications. This book takes you from the basics of Django all the way through to cutting-edge topics such as creating RESTful applications. Beginning Django also covers ancillary, but essential, development top...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[Berkeley, CA] :
Apress,
2017.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: Introduction to the Django Framework
- Django Framework Design Principles
- Donâ#x80;#x99;t Repeat Yourself (DRY) Principle
- Explicit Is Better Than Implicit
- Loosely Coupled Architecture
- Install Django
- Install Python (Prerequisite)
- Update or Install pip Package Manager (Prerequisite)
- Install virtualenv (Optional Prerequisite)
- Install Django
- Install Django from Git
- Start a Django Project
- Set Up a Database for a Django ProjectInstall Python Database Packages
- Test Django Database Connection and Build Django Base Tables
- Set Up Content: Understand Urls, Templates, and Apps
- Create and Configure Django Urls
- Create and Configure Django Templates
- Create and Configure Django Apps
- Set Up the Django admin Site
- Configure and Install the Django admin site App
- Configure and Install the Django admin site docs App
- Chapter 2: Django Urls and Views
- Url Regular Expressions
- Precedence Rule: Granular Urls First, Broad Urls Last
- Exact Url Patterns: Forgoing Broad MatchingCommon Url Patterns
- Url Parameters, Extra Options, and Query Strings
- Url Consolidation and Modularization
- Url Naming and Namespaces
- View Method Requests
- View Method Responses
- Response Options for HTTP Status and Content-Type Headers
- Built-In Response Shortcuts and Templates for Common HTTP Status: 404 (Not Found), 500 (Internal Server Error), 400 (Bad Request), and 403 (Forbidden)
- Built-In Response Shortcuts for Inline and Streamed Content
- View Method Middleware
- Built-In Middleware Classes
- Middleware Structure and Execution ProcessMiddleware Flash Messages in View Methods
- Add Flash Messages
- Access Flash Messages
- Class-Based Views
- Built-In Class-Based Views
- Class-Based View Structure and Execution
- Chapter 3: Django Templates
- Django Template Syntax
- Auto-Escaping: HTML and Erring on the Safe Side
- Django Template Configuration
- Template Search Paths
- Invalid Template Variables
- Debug Output
- Auto-Escape
- File charset
- Automatic Access to Custom Template tag/filter Modules
- Template Loaders
- Create Reusable TemplatesBuilt-In Context Processors
- Django debug context processor (django.template.context_processors.debug)
- Django request context processor (django.template.context_processors.request)
- Django auth context processor (django.contrib.auth.context_processors.auth)
- Django messages context processor (django.contrib.messages.context_processors.messages)
- Other Built-In Django Context Processors: i18n, media, static, tz, and CSRF context Processors
- Django i18n context processor (django.template.context_processors.i18n)