Mastering Django: Core

Delivers absolutely everything you will ever need to know to become a master Django programmer
Preview in Mapt
Code Files

Mastering Django: Core

Nigel George

2 customer reviews
Delivers absolutely everything you will ever need to know to become a master Django programmer

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering Django: Core Book Cover
Mastering Django: Core
$ 39.99
$ 28.00
Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $44.98
Add to Cart

Book Details

ISBN 139781787281141
Paperback694 pages

Book Description

Mastering Django: Core is a completely revised and updated version of the original Django Book, written by Adrian Holovaty and Jacob Kaplan-Moss - the creators of Django.

The main goal of this book is to make you a Django expert. By reading this book, you’ll learn the skills needed to develop powerful websites quickly, with code that is clean and easy to maintain.

This book is also a programmer’s manual that provides complete coverage of the current Long Term Support (LTS) version of Django. For developers creating applications for commercial and business critical deployments, Mastering Django: Core provides a complete, up-to-date resource for Django 1.8LTS with a stable code-base, security fixes and support out to 2018.

Table of Contents

Chapter 1: Introduction to Django and Getting Started
Introducing Django
What's next?
Chapter 2: Views and URLconfs
Your first Django-powered page: Hello World
Your second view: dynamic content
URLconfs and loose coupling
Your third view: dynamic URLs
Django's pretty error pages
What's next?
Chapter 3: Templates
Template system basics
Using the template system
Dictionaries and contexts
Basic template-tags and filters
Philosophies and limitations
Using templates in views
Template loading
render()
Template subdirectories
The include template tag
Template inheritance
What's next?
Chapter 4: Models
The "dumb" way to do database queries in views
Configuring the database
Your first app
Defining Models in Python
Basic data access
What's next?
Chapter 5: The Django Admin Site
Using the admin site
Adding your models to the admin site
Making fields optional
Customizing field labels
Custom model admin classes
Users, groups, and permissions
When and why to use the admin interface-and when not to
What's next?
Chapter 6: Forms
Getting data from the Request Object
A simple form-handling example
Improving our simple form-handling example
Simple validation
Making a contact form
Tying form objects into views
Changing how fields are rendered
Setting a maximum length
Setting initial values
Custom validation rules
Specifying labels
Customizing form design
What's next?
Chapter 7: Advanced Views and URLconfs
URLconf Tips and Tricks
Performance
Error handling
Including other URLconfs
Passing extra options to view functions
Reverse resolution of URLs
Naming URL patterns
URL namespaces
What's next?
Chapter 8: Advanced Templates
Template language review
Requestcontext and context processors
Guidelines for writing our own context processors
Automatic HTML escaping
Inside Template loading
Extending the template system
Custom template tags and filters
Advanced custom template tags
What's next
Chapter 9: Advanced Models
Related objects
Managers
Model methods
Executing raw SQL queries
Performing raw queries
Executing custom SQL directly
What's next?
Chapter 10: Generic Views
Generic views of objects
Making "friendly" template contexts
Adding extra context
Viewing subsets of objects
Dynamic filtering
Performing extra work
What's next?
Chapter 11: User Authentication in Django
Overview
Using the Django authentication system
User objects
Permissions and authorization
Authentication in web requests
Authentication views
Authenticating data in templates
Managing users in the admin
Password management in Django
Customizing authentication in Django
Custom permissions
Extending the existing user model
Substituting a custom user model
What's next?
Chapter 12: Testing in Django
Introduction to testing
Introducing automated testing
Basic testing strategies
Writing a test
Creating a test
Running tests
Testing tools
The test database
Using different testing frameworks
What's next?
Chapter 13: Deploying Django
Preparing your codebase for production
Critical settings
Environment-specific settings
HTTPS
Performance optimizations
Error reporting
Using a virtualenv
Using different settings for production
Deploying Django to a production server
Deploying Django with Apache and mod_wsgi
Serving static files in production
Scaling
Performance tuning
What's next?
Chapter 14: Generating Non-HTML Content
The basics: views and MIME types
Producing CSV
Using the template system
Other text-based formats
Generating PDF
Install ReportLab
Write your view
Complex PDF's
Further resources
Other possibilities
The syndication feed framework
The high-level framework
The low-level framework
The Sitemap framework
What's next?
Chapter 15: Django Sessions
Enabling sessions
Configuring the session engine
Using Sessions in Views
Session object guidelines
Session serialization
Setting test cookies
Using sessions out of views
When sessions are saved
Browser-length sessions vs. persistent sessions
Clearing the session store
What's next
Chapter 16: Djangos Cache Framework
Setting up the cache
The per-site cache
The per-view cache
Template fragment caching
The low-level cache API
Downstream caches
Using vary headers
Controlling cache: using other headers
What's next?
Chapter 17: Django Middleware
Activating middleware
Hooks and application order
Writing your own middleware
Available middleware
Middleware ordering
What's next?
Chapter 18: Internationalization
Definitions
Translation
Internationalization: in Python code
Internationalization: In template code
Internationalization: In Javascript code
Internationalization: In URL patterns
Localization: How to create language files
Explicitly setting the active language
Using translations outside views and templates
Implementation notes
What's next?
Chapter 19: Security in Django
Django's built in security features
Additional security tips
Chapter 20: More on Installing Django
Running other databases
Installing Django manually
Upgrading Django
Installing a Distribution-specific package
Installing the development version
What's next?
Chapter 21: Advanced Database Management
General notes
postgreSQL notes
MySQL notes
SQLite notes
Oracle notes
Using a 3rd-Party database backend
Integrating Django with a legacy database
What's next?

What You Will Learn

  • Use Django to access user-submitted form data, validate it, and work with it
  • Get to know advanced URLconf tips and tricks
  • Extend Django’s template system with custom code
  • Define models and use the database API to create, retrieve, update, and delete records
  • Fully extend and customize the default implementation as per your project’s needs
  • Test and deploy your Django application
  • Get to know more about Django’s session, cache Framework, and middleware

Authors

Table of Contents

Chapter 1: Introduction to Django and Getting Started
Introducing Django
What's next?
Chapter 2: Views and URLconfs
Your first Django-powered page: Hello World
Your second view: dynamic content
URLconfs and loose coupling
Your third view: dynamic URLs
Django's pretty error pages
What's next?
Chapter 3: Templates
Template system basics
Using the template system
Dictionaries and contexts
Basic template-tags and filters
Philosophies and limitations
Using templates in views
Template loading
render()
Template subdirectories
The include template tag
Template inheritance
What's next?
Chapter 4: Models
The "dumb" way to do database queries in views
Configuring the database
Your first app
Defining Models in Python
Basic data access
What's next?
Chapter 5: The Django Admin Site
Using the admin site
Adding your models to the admin site
Making fields optional
Customizing field labels
Custom model admin classes
Users, groups, and permissions
When and why to use the admin interface-and when not to
What's next?
Chapter 6: Forms
Getting data from the Request Object
A simple form-handling example
Improving our simple form-handling example
Simple validation
Making a contact form
Tying form objects into views
Changing how fields are rendered
Setting a maximum length
Setting initial values
Custom validation rules
Specifying labels
Customizing form design
What's next?
Chapter 7: Advanced Views and URLconfs
URLconf Tips and Tricks
Performance
Error handling
Including other URLconfs
Passing extra options to view functions
Reverse resolution of URLs
Naming URL patterns
URL namespaces
What's next?
Chapter 8: Advanced Templates
Template language review
Requestcontext and context processors
Guidelines for writing our own context processors
Automatic HTML escaping
Inside Template loading
Extending the template system
Custom template tags and filters
Advanced custom template tags
What's next
Chapter 9: Advanced Models
Related objects
Managers
Model methods
Executing raw SQL queries
Performing raw queries
Executing custom SQL directly
What's next?
Chapter 10: Generic Views
Generic views of objects
Making "friendly" template contexts
Adding extra context
Viewing subsets of objects
Dynamic filtering
Performing extra work
What's next?
Chapter 11: User Authentication in Django
Overview
Using the Django authentication system
User objects
Permissions and authorization
Authentication in web requests
Authentication views
Authenticating data in templates
Managing users in the admin
Password management in Django
Customizing authentication in Django
Custom permissions
Extending the existing user model
Substituting a custom user model
What's next?
Chapter 12: Testing in Django
Introduction to testing
Introducing automated testing
Basic testing strategies
Writing a test
Creating a test
Running tests
Testing tools
The test database
Using different testing frameworks
What's next?
Chapter 13: Deploying Django
Preparing your codebase for production
Critical settings
Environment-specific settings
HTTPS
Performance optimizations
Error reporting
Using a virtualenv
Using different settings for production
Deploying Django to a production server
Deploying Django with Apache and mod_wsgi
Serving static files in production
Scaling
Performance tuning
What's next?
Chapter 14: Generating Non-HTML Content
The basics: views and MIME types
Producing CSV
Using the template system
Other text-based formats
Generating PDF
Install ReportLab
Write your view
Complex PDF's
Further resources
Other possibilities
The syndication feed framework
The high-level framework
The low-level framework
The Sitemap framework
What's next?
Chapter 15: Django Sessions
Enabling sessions
Configuring the session engine
Using Sessions in Views
Session object guidelines
Session serialization
Setting test cookies
Using sessions out of views
When sessions are saved
Browser-length sessions vs. persistent sessions
Clearing the session store
What's next
Chapter 16: Djangos Cache Framework
Setting up the cache
The per-site cache
The per-view cache
Template fragment caching
The low-level cache API
Downstream caches
Using vary headers
Controlling cache: using other headers
What's next?
Chapter 17: Django Middleware
Activating middleware
Hooks and application order
Writing your own middleware
Available middleware
Middleware ordering
What's next?
Chapter 18: Internationalization
Definitions
Translation
Internationalization: in Python code
Internationalization: In template code
Internationalization: In Javascript code
Internationalization: In URL patterns
Localization: How to create language files
Explicitly setting the active language
Using translations outside views and templates
Implementation notes
What's next?
Chapter 19: Security in Django
Django's built in security features
Additional security tips
Chapter 20: More on Installing Django
Running other databases
Installing Django manually
Upgrading Django
Installing a Distribution-specific package
Installing the development version
What's next?
Chapter 21: Advanced Database Management
General notes
postgreSQL notes
MySQL notes
SQLite notes
Oracle notes
Using a 3rd-Party database backend
Integrating Django with a legacy database
What's next?

Book Details

ISBN 139781787281141
Paperback694 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 28.00
Natural Language Processing: Python and NLTK Book Cover
Natural Language Processing: Python and NLTK
$ 67.99
$ 47.60
Flask: Building Python Web Services Book Cover
Flask: Building Python Web Services
$ 79.99
$ 56.00
TypeScript: Modern JavaScript Development Book Cover
TypeScript: Modern JavaScript Development
$ 69.99
$ 49.00
Mastering Python Book Cover
Mastering Python
$ 31.99
$ 22.40
Django JavaScript Integration: AJAX and jQuery Book Cover
Django JavaScript Integration: AJAX and jQuery
$ 26.99
$ 18.90