Cover image for Web Development with Django Cookbook.
Web Development with Django Cookbook.
Title:
Web Development with Django Cookbook.
Author:
Bendoraitis, Aidas.
ISBN:
9781783286904
Personal Author:
Physical Description:
1 online resource (341 pages)
Contents:
Web Development with Django Cookbook -- Table of Contents -- Web Development with Django Cookbook -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers, and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Getting Started with Django 1.6 -- Introduction -- 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... -- 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... -- See also -- Defining relative paths in the 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 -- Creating and including local settings -- 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... -- Setting the Subversion ignore property -- Getting ready -- How to do it... -- How it works... -- 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... -- See also -- Importing an order in Python files -- 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... -- 2. Database Structure -- 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... -- Using South 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 with South -- Getting ready -- How to do it... -- How it works... -- See also -- 3. Forms and Views -- Introduction -- Passing HttpRequest to the 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 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 is more... -- See also -- Generating PDF documents -- Getting ready -- How to do it... -- How it works... -- See also -- 4. Templates and JavaScript -- Introduction -- Arranging the base.html template -- Getting ready -- How to do it... -- How it works... -- See also -- Including JavaScript settings -- 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 -- Opening object details in a pop up -- Getting ready -- How to do it... -- How it works... -- See also -- Implementing a continuous scroll -- 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 by Ajax -- Getting ready -- How to do it... -- How it works... -- See also -- 5. Custom 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 many days have passed -- 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 -- 6. Model Administration -- Introduction -- Customizing columns in the change list page -- 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 -- Exchanging administration settings for external apps -- 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 -- 7. 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 -- 8. Hierarchical Structures -- Introduction -- Creating hierarchical categories -- 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 -- Creating a category administration interface with django-mptt-tree-editor -- Getting ready -- How to do it... -- How it works... -- See also -- Rendering categories in a template.

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 -- Getting ready -- How to do it... -- How it works... -- See also -- Using a checkbox list to choose multiple categories in forms -- Getting ready -- How to do it... -- How it works... -- See also -- 9. Data Import and Export -- Introduction -- 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... -- See also -- Creating filterable RSS feeds -- Getting ready -- How to do it... -- How it works... -- See also -- Using Tastypie to provide data to third parties -- Getting ready -- How to do it... -- How it works... -- See also -- 10. Bells and Whistles -- Introduction -- Using the Django shell -- Getting ready -- How to do it... -- How it works... -- See also -- The monkey patching slugification function -- Getting ready -- How to do it... -- How it works... -- See also -- The monkey patching model administration -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Toggling 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 -- Caching the method value -- Getting ready -- How to do it... -- How it works... -- See also -- Getting detailed error reporting via e-mail -- Getting ready -- How to do it... -- How it works... -- See also -- Deploying on Apache with mod_wsgi -- Getting ready.

How to do it...
Abstract:
If you have created websites with Django, but you want to sharpen your knowledge and learn some good approaches for how to treat different aspects of web development, you should definitely read this book. It is intended for intermediate and professional Django users who need to build projects which must be multilingual, functional on devices of different screen sizes, and which scale over time.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: