Amazon cover image
Image from Amazon.com

Django 3 by example : build powerful and reliable Python web applications from scratch / Antonio Melé.

By: Material type: TextTextPublisher: Birmingham, UK : Packt Publishing, 2020Edition: Third editionDescription: 568 pages illustrationsContent type:
  • text
Media type:
  • unmediated
Carrier type:
  • volume
ISBN:
  • 9781838981952
  • 1838989323
Other title:
  • Django three by example
  • Build powerful and reliable Python web applications from scratch
Subject(s): DDC classification:
  • 006.7 23
LOC classification:
  • TK5105.8885.D54
Contents:
Cover -- Copyright -- Packt Page -- Contributors -- Table of Contents -- Preface -- Chapter 1: Building a Blog Application -- Installing Django -- Creating an isolated Python environment -- Installing Django with pip -- Creating your first project -- Running the development server -- Project settings -- Projects and applications -- Creating an application -- Designing the blog data schema -- Activating the application -- Creating and applying migrations -- Creating an administration site for models -- Creating a superuser -- The Django administration site
Adding models to the administration site -- Customizing the way that models are displayed -- Working with QuerySets and managers -- Creating objects -- Updating objects -- Retrieving objects -- Using the filter() method -- Using exclude() -- Using order_by() -- Deleting objects -- When QuerySets are evaluated -- Creating model managers -- Building list and detail views -- Creating list and detail views -- Adding URL patterns for your views -- Canonical URLs for models -- Creating templates for your views -- Adding pagination -- Using class-based views -- Summary
Chapter 2: Enhancing Your Blog with Advanced Features -- Sharing posts by email -- Creating forms with Django -- Handling forms in views -- Sending emails with Django -- Rendering forms in templates -- Creating a comment system -- Building a model -- Creating forms from models -- Handling ModelForms in views -- Adding comments to the post detail template -- Adding the tagging functionality -- Retrieving posts by similarity -- Summary -- Chapter 3: Extending Your Blog Application -- Creating custom template tags and filters -- Custom template tags -- Custom template filters
Adding a sitemap to your site -- Creating feeds for your blog posts -- Adding full-text search to your blog -- Installing PostgreSQL -- Simple search lookups -- Searching against multiple fields -- Building a search view -- Stemming and ranking results -- Weighting queries -- Searching with trigram similarity -- Other full-text search engines -- Summary -- Chapter 4: Building a Social Website -- Creating a social website project -- Starting your social website project -- Using the Django authentication framework -- Creating a login view -- Using Django authentication views
Login and logout views -- Changing password views -- Resetting password views -- User registration and user profiles -- User registration -- Extending the user model -- Using a custom user model -- Using the messages framework -- Building a custom authentication backend -- Adding social authentication to your site -- Running the development server through HTTPS -- Authentication using Facebook -- Authentication using Twitter -- Authentication using Google -- Summary -- Chapter 5: Sharing Content on Your Website -- Creating an image bookmarking website -- Building the image model
Holdings
Item type Current library Collection Call number Status Date due Barcode Item holds
Book Book Books at groups Vogels Group Not for loan
Total holds: 0

Previous edition published: 2018.

Includes bibliographical references.

Cover -- Copyright -- Packt Page -- Contributors -- Table of Contents -- Preface -- Chapter 1: Building a Blog Application -- Installing Django -- Creating an isolated Python environment -- Installing Django with pip -- Creating your first project -- Running the development server -- Project settings -- Projects and applications -- Creating an application -- Designing the blog data schema -- Activating the application -- Creating and applying migrations -- Creating an administration site for models -- Creating a superuser -- The Django administration site

Adding models to the administration site -- Customizing the way that models are displayed -- Working with QuerySets and managers -- Creating objects -- Updating objects -- Retrieving objects -- Using the filter() method -- Using exclude() -- Using order_by() -- Deleting objects -- When QuerySets are evaluated -- Creating model managers -- Building list and detail views -- Creating list and detail views -- Adding URL patterns for your views -- Canonical URLs for models -- Creating templates for your views -- Adding pagination -- Using class-based views -- Summary

Chapter 2: Enhancing Your Blog with Advanced Features -- Sharing posts by email -- Creating forms with Django -- Handling forms in views -- Sending emails with Django -- Rendering forms in templates -- Creating a comment system -- Building a model -- Creating forms from models -- Handling ModelForms in views -- Adding comments to the post detail template -- Adding the tagging functionality -- Retrieving posts by similarity -- Summary -- Chapter 3: Extending Your Blog Application -- Creating custom template tags and filters -- Custom template tags -- Custom template filters

Adding a sitemap to your site -- Creating feeds for your blog posts -- Adding full-text search to your blog -- Installing PostgreSQL -- Simple search lookups -- Searching against multiple fields -- Building a search view -- Stemming and ranking results -- Weighting queries -- Searching with trigram similarity -- Other full-text search engines -- Summary -- Chapter 4: Building a Social Website -- Creating a social website project -- Starting your social website project -- Using the Django authentication framework -- Creating a login view -- Using Django authentication views

Login and logout views -- Changing password views -- Resetting password views -- User registration and user profiles -- User registration -- Extending the user model -- Using a custom user model -- Using the messages framework -- Building a custom authentication backend -- Adding social authentication to your site -- Running the development server through HTTPS -- Authentication using Facebook -- Authentication using Twitter -- Authentication using Google -- Summary -- Chapter 5: Sharing Content on Your Website -- Creating an image bookmarking website -- Building the image model

Powered by Koha