Django 3 by example : build powerful and reliable Python web applications from scratch /
Django 3 By Example, Third Edition, explores key Django features and best practices that every Python web developer should be aware of. This third edition is fully updated for Django 3 and a new chapter on Django Channels for real-time features has been added. Much more than just a reference guide,...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2020.
|
Edición: | Third edition. |
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- 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