Home Page Icon
Home Page
Table of Contents for
Django Project Blueprints
Close
Django Project Blueprints
by Asad Jibran Ahmed
Django Project Blueprints
Django Project Blueprints
Table of Contents
Django Project Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
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. Blueblog – a Blogging Platform
The contrib packages
Setting up our development environment
Database settings
Static files settings
A base template
User accounts
A user accounts app
Account registration
Generic views
Template and URLs
Login and logout
The login view
The logout view
Navigation links
The blog
Models
Creating a blog view
The home page
The blog settings view
Creating and editing blog posts
Editing blog posts
Viewing blog posts
Multiple users
Security
Sharing blog post
Summary
2. Discuss – a Hacker News Clone
Chapter code packs
Requirements
Starting out
Link submission
Comments
Voting
Ranking submission
Spam protection
Summary
3. Djagios – a Nagios Clone in Django
Code pack
Requirements
The model
Fake data generation
Django management commands
A better model representation
Status page
Alerts
The model
Management views
Showing triggered alerts on the status page
Accepting data from remote systems
Testing API endpoints
Summary
4. A Car Rental App
Code pack
Fixtures
Image and File fields
get_absolute_url
The Django admin app
Showing the car names
Booking management
A peek behind the curtain
Improving the user experience
Filtering objects
Searching for objects
Quick edit
Admin actions
UX improvements
Summary
5. Multilingual Movie Database
Requirements
Getting the project up and running
Translating our static content
How did all that work?
Letting the user decide which language to use
Persisting the user choice
Translating our models
Summary
6. Daintree – an E-commerce Site
Code pack
Exploring Elasticsearch
First steps with Elasticsearch
Searching from Python
Mapping
Defining a mapping
Inserting documents into Elasticsearch from Python
Getting all our data into Elasticsearch
Adding search
Configuration management
More search options
Aggregations and filters
Category aggregation
Full text search and analysis
Searching with aggregations
Summary
7. Form Mason – a Monkey of your own
Code pack
Looking at a Django form
Adding an extra field to a SampleForm instance
Generating dynamic forms
Generating a form out of JSON
A model for our JSON
Creating a better user interface
Saving the responses
Showing the responses
An improved responses list
Designing a form creation interface
Small fixes
Summary
A. Development Environment Setup Details and Debugging Techniques
Using pdb to debug Django views
Developing on Windows
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Table of Contents
Next
Next Chapter
Django Project Blueprints
Django Project Blueprints
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset