Django 2 Web Development Cookbook
Jake Kronika Aidas Bendoraitis更新时间:2021-06-10 19:32:54
最新章节:Leave a review - let other readers know what you thinkcoverpage
Title Page
Dedication
Packt.com
Why subscribe?
Packt.com
Contributors
About the authors
About the reviewer
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
Download the color images
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 2.1
Introduction
Working with a virtual environment
Getting ready
How to do it...
How it works...
See also
Creating a virtual environment project file structure
Getting ready
How to do it...
How it works...
See also
Working with Docker
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a Docker 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
Including external dependencies in your project
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...
There's more...
See also
Defining relative paths in the settings
Getting ready
How to do it...
How it works...
See also
Creating and including local settings
Getting ready
How to do it...
How it works...
See also
Setting up STATIC_URL dynamically for Subversion users
Getting ready
How to do it...
How it works...
See also
Setting up STATIC_URL dynamically for Git users
Getting ready
How to do it...
How it works...
See also
Setting UTF-8 as the default encoding for MySQL configuration
Getting ready
How to do it...
How it works...
There's more...
See also
Setting the Subversion ignore property
How to do it...
How it works...
See also
Creating the Git ignore file
Getting ready
How to do it...
How it works...
There's more...
See also
Deleting Python-compiled files
Getting ready
How to do it...
How it works...
See also
Respecting the import order in Python files
Getting ready
How to do it...
How it works...
There's more...
See also
Creating app configuration
Getting ready
How to do it...
How it works...
There is more...
See also
Defining overwritable app settings
Getting ready
How to do it...
How it works...
Database Structure and Modeling
Introduction
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...
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
Enabling schema microdata enhancements
Getting ready
How to do it...
How it works...
See also
Using migrations
Getting ready
How to do it...
How it works...
See also
Switching from South migrations to Django migrations
Getting ready
How to do it...
How it works...
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
Passing HttpRequest to a form
Getting ready
How to do it...
How it works...
See also
Utilizing the save method of the form
Getting ready
How to do it...
How it works...
See also
Uploading images
Getting ready
How to do it...
How it works...
There's more
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
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
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
Templates and JavaScript
Introduction
Exposing settings in JavaScript
Getting ready
How to do it...
How it works...
See also
Arranging the base.html template
Getting ready
How to do it...
How it works...
There's more...
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
Opening object details in a modal dialog
Getting ready
How to do it...
How it works...
See also
Implementing a continuous scroll
Getting ready
How to do it...
How it works...
There's more
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...
See also
Customizing Template Filters and Tags
Introduction
Following conventions for your own template filters and tags
How to do it...
See also
Creating a template filter to show how much time has 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 a template tag to modify request query parameters
Getting ready
How to do it...
How it works...
See also
Model Administration
Introduction
Customizing columns on the change list page
Getting ready
How to do it...
How it works...
There's more...
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
Customizing default admin settings
Getting ready
How to do it...
How it works...
See also
Inserting a map into a change form
Getting ready
How to do it...
How it works...
See also
Security and Performance
Introduction
Making forms secure from Cross Site Request Forgery (CSRF)
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...
There's more...
See also
Authenticating with Auth0
Getting ready
How to do it...
How it works...
There's more...
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
Django CMS
Introduction
Creating templates for Django CMS
Getting ready
How to do it...
How it works...
See also
Structuring the page menu
Getting ready
How to do it...
How it works...
See also
Converting an app to a CMS app
Getting ready
How to do it...
How it works...
See also
Attaching your own navigation
Getting ready
How to do it...
How it works...
See also
Writing your own CMS plugin
Getting ready
How to do it...
How it works...
See also
Adding new fields to the CMS page
Getting ready
How to do it...
How it works...
See also
Hierarchical Structures
Introduction
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...
There's more...
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
Importing data from a local CSV file
Getting ready
How to do it...
How it works...
There's more...
See also
Importing data from a local Excel file
Getting ready
How to do it...
How it works...
There's more...
See also
Importing data from an external JSON file
Getting ready
How to do it...
How it works...
There's more...
See also
Importing data from an external XML file
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 Tastypie to create an API
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
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 and Deployment
Introduction
Testing views with mock
Getting ready
How to do it...
How it works...
See also
Testing APIs created using the Django REST framework
Getting ready
How to do it...
How it works...
See also
Releasing a reusable Django app
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...
See also
Deploying on Apache with mod_wsgi
Getting ready
How to do it...
How it works...
There's more...
See also
Setting up cron jobs for regular tasks
Getting ready
How to do it...
How it works...
See also
Other Books You May Enjoy
Leave a review - let other readers know what you think
更新时间:2021-06-10 19:32:54