Log In
Or create an account -> 
Imperial Library
  • Home
  • About
  • News
  • Upload
  • Forum
  • Help
  • Login/SignUp

Index
Title Page Copyright and Credits
Django 3 Web Development Cookbook Fourth Edition
About Packt
Why subscribe?
Contributors
About the authors About the reviewers Packt is searching for authors like you
Preface
Who this book is for What this book covers To get the most out of this book
Download the example code files Conventions used
Sections
Getting ready How to do it… How it works… There's more… See also
Get in touch
Reviews
Getting Started with Django 3.0
Introduction Technical requirements Working with a virtual environment
Getting ready How to do it... How it works... See also
Creating a project file structure
Getting ready How to do it... How it works... There's more... See also
Handling project dependencies with pip
Getting ready How to do it... How it works... There's more... See also
Configuring settings for development, testing, staging, and production environments
Getting ready How to do it... How it works... See also
Defining relative paths in the settings
Getting ready How to do it... How it works... See also
Handling sensitive settings
Getting ready How to do it... How it works... There's more... See also
Including external dependencies in your project
Getting ready How to do it... How it works... See also
Setting up STATIC_URL dynamically
Getting ready How to do it... How it works... There's more... See also
Setting UTF-8 as the default encoding for the MySQL configuration
Getting ready How to do it... How it works... There's more... See also
Creating the Git ignore file
Getting ready How to do it... How it works... See also
Deleting Python-compiled files
Getting ready How to do it... How it works... There's more... See also
Respecting the import order in Python files
Getting ready How to do it... How it works... There's more... See also
Creating an app configuration
Getting ready How to do it... How it works... There's more... See also
Defining overwritable app settings
Getting ready How to do it... How it works... See also
Working with Docker containers for Django, Gunicorn, Nginx, and PostgreSQL
Getting ready How to do it... How it works... There's more... See also
Models and Database Structure
Introduction Technical requirements Using model mixins
Getting ready How to do it... How it works... There's more... See also
Creating a model mixin with URL-related methods
Getting ready How to do it... How it works... There's more... See also
Creating a model mixin to handle creation and modification dates
Getting ready How to do it... How it works... See also
Creating a model mixin to take care of meta tags
Getting ready How to do it... How it works... See also
Creating a model mixin to handle generic relations
Getting ready How to do it... How it works... See also
Handling multilingual fields
Getting ready How to do it... How it works... See also
Working with model translation tables
Getting ready How to do it... How it works... See also
Avoiding circular dependencies
Getting ready How to do it... See also
Adding database constraints
Getting ready How to do it... How it works... There's more... See also
Using migrations
Getting ready How to do it... How it works... There's more... See also
Changing a foreign key to the many-to-many field
Getting ready How to do it... How it works... There's more... See also
Forms and Views
Introduction Technical requirements Creating an app with CRUDL functions
Getting ready How to do it... How it works... There's more... See also
Saving the author of a model instance
Getting ready How to do it... How it works... See also
Uploading images
Getting ready How to do it... How it works... See also
Creating a form layout with custom templates
Getting ready How to do it... How it works... See also
Creating a form layout with django-crispy-forms
Getting ready How to do it... How it works... There's more... See also
Working with formsets
Getting ready How to do it... How it works... There's more... See also
Filtering object lists
Getting ready How to do it... How it works... See also
Managing paginated lists
Getting ready How to do it... How it works... See also
Composing class-based views
Getting ready How to do it... How it works... There's more... See also
Providing Open Graph and Twitter Card data
Getting ready How to do it... How it works... See also
Providing schema.org vocabularies
Getting ready How to do it... How it works... See also
Generating PDF documents
Getting ready How to do it... How it works... See also
Implementing a multilingual search with Haystack and Whoosh
Getting ready How to do it... How it works... See also
Implementing a multilingual search with Elasticsearch DSL
Getting ready How to do it... How it works... See also
Templates and JavaScript
Introduction Technical requirements Arranging the base.html template
Getting ready How to do it...  How it works... See also
Using Django Sekizai
Getting ready How to do it... How it works... See also
Exposing settings in JavaScript
Getting ready How to do it... How it works... See also
Using HTML5 data attributes
Getting ready How to do it... How it works... See also
Providing responsive images
Getting ready How to do it... How it works... There's more... See also
Implementing a continuous scrolling
Getting ready How to do it... How it works... There's more... See also
Opening object details in a modal dialog
Getting ready How to do it... How it works... See also
Implementing the Like widget
Getting ready How to do it... How it works... See also
Uploading images via Ajax
Getting ready How to do it... How it works... There's more... See also
Custom Template Filters and Tags
Introduction Technical requirements Following conventions for your own template filters and tags Creating a template filter to show how many days have passed since a post was published
Getting ready How to do it... How it works... There's more... See also
Creating a template filter to extract the first media object
Getting ready How to do it... How it works... There's more... See also
Creating a template filter to humanize URLs
Getting ready How to do it... How it works... See also
Creating a template tag to include a template, if it exists
Getting ready How to do it... How it works... There's more... See also
Creating a template tag to load a QuerySet in a template
Getting ready How to do it... How it works... See also
Creating a template tag to parse content as a template
Getting ready How to do it... How it works... See also
Creating template tags to modify request query parameters
Getting ready How to do it... How it works... See also
Model Administration
Introduction Technical requirements Customizing columns on the change list page
Getting ready How to do it... How it works... See also
Creating sortable inlines
Getting ready How to do it... How it works... See also
Creating admin actions
Getting ready How to do it... How it works... See also
Developing change list filters
Getting ready How to do it... How it works... See also
Changing the app label of a third-party app
Getting ready How to do it... How it works... See also
Creating a custom accounts app
Getting ready How to do it... How it works... See also
Getting user Gravatars
Getting ready How to do it... How it works... There's more... See also
Inserting a map into a change form
Getting ready How to do it... How it works... See also
Security and Performance
Introduction Technical requirements Making forms secure from Cross-Site Request Forgery (CSRF)
Getting ready How to do it... How it works... There's more... See also
Making requests secure with Content Security Policy (CSP)
Getting ready How to do it... How it works... See also
Using django-admin-honeypot
Getting ready How to do it... How it works... There's more... See also
Implementing password validation
Getting ready How to do it... How it works... There's more... See also
Downloading authorized files
Getting ready How to do it... How it works... See also
Adding a dynamic watermark to images
Getting ready How to do it... How it works... See also
Authenticating with Auth0
Getting ready How to do it... How it works... See also
Caching the method return value
Getting ready How to do it... How it works... There's more... See also
Using Memcached to cache Django views
Getting ready How to do it... How it works... See also
Using Redis to cache Django views
Getting ready How to do it... How it works... There's more... See also
Hierarchical Structures
Introduction Technical requirements Creating hierarchical categories with django-mptt
Getting ready How to do it... How it works... See also
Creating a category administration interface with django-mptt-admin
Getting ready How to do it... How it works... See also
Rendering categories in a template with django-mptt
Getting ready How to do it... How it works... There's more... See also
Using a single selection field to choose a category in forms with django-mptt
Getting ready How to do it... How it works... See also
Using a checkbox list to choose multiple categories in forms with django-mptt
Getting ready How to do it... How it works... See also
Creating hierarchical categories with django-treebeard
Getting ready How to do it... How it works... There's more... See also
Creating a basic category administration interface with django-treebeard
Getting ready How to do it... How it works... See also
Importing and Exporting Data
Introduction Technical requirements Importing data from a local CSV file
Getting ready How to do it... How it works... See also
Importing data from a local Excel file
Getting ready How to do it... How it works... See also
Importing data from an external JSON file
Getting ready How to do it... How it works... See also
Importing data from an external XML file
Getting ready How to do it... How it works... There's more... See also
Preparing paginated sitemaps for search engines
Getting ready How to do it... How it works... There's more... See also
Creating filterable RSS feeds
Getting ready How to do it... How it works... See also
Using Django REST framework to create an API
Getting ready How to do it... How it works... See also
Bells and Whistles
Introduction Technical requirements Using the Django shell
Getting ready How to do it... How it works... See also
Using database query expressions
Getting ready How to do it... How it works... See also
Monkey patching the slugify() function for better internationalization support
Getting ready How to do it... How it works... There's more... See also
Toggling the Debug toolbar
Getting ready How to do it... How it works... See also
Using ThreadLocalMiddleware
Getting ready How to do it... How it works... See also
Using signals to notify administrators about new entries
Getting ready How to do it... How it works... See also
Checking for missing settings
Getting ready How to do it... How it works... See also
Testing
Introduction Technical requirements Testing views with mock
Getting ready How to do it... How it works... There's more... See also
Testing the user interface with Selenium
Getting ready How to do it... How it works... See also
Testing APIs created using Django REST framework
Getting ready How to do it... How it works... See also
Ensuring test coverage
Getting ready How to do it... How it works... See also
Deployment
Introduction Technical requirements Releasing a reusable Django app
Getting ready How to do it... How it works... See also
Deploying on Apache with mod_wsgi for the staging environment
Getting ready How to do it... How it works... See also
Deploying on Apache with mod_wsgi for the production environment
Getting ready How to do it... How it works... See also
Deploying on Nginx and Gunicorn for the staging environment
Getting ready How to do it... How it works... See also
Deploying on Nginx and Gunicorn for the production environment
Getting ready How to do it... How it works... See also
Maintenance
Introduction Technical requirements Creating and restoring MySQL database backups
Getting ready How to do it... How it works... See also
Creating and restoring PostgreSQL database backups
Getting ready How to do it... How it works... See also
Setting up cron jobs for regular tasks
Getting ready How to do it... How it works... There's more... See also
Logging events for further introspection
Getting ready How to do it... How it works... See also
Getting detailed error reporting via email
Getting ready How to do it... How it works... There's more... See also
Other Books You May Enjoy
Leave a review - let other readers know what you think
  • ← Prev
  • Back
  • Next →
  • ← Prev
  • Back
  • Next →

Chief Librarian: Las Zenow <zenow@riseup.net>
Fork the source code from gitlab
.

This is a mirror of the Tor onion service:
http://kx5thpx2olielkihfyo4jgjqfb7zx7wxr3sd4xzt26ochei4m6f7tayd.onion