Django By Example

Create your own line of successful web applications with Django
Preview in Mapt

Django By Example

Antonio Melé

3 customer reviews
Create your own line of successful web applications with Django
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Django By Example Book Cover
Django By Example
$ 35.99
$ 25.20
Django: Web Development with Python Book Cover
Django: Web Development with Python
$ 67.99
$ 47.60
Buy 2 for $35.00
Save $68.98
Add to Cart

Book Details

ISBN 139781784391911
Paperback474 pages

Book Description

Django is a powerful Python web framework designed to develop web applications quickly, from simple prototypes to large-scale projects. Django encourages clean, pragmatic design, and provides developers with a comprehensive set of tools to build scalable web applications.

This book will walk you through the creation of four professional Django projects, teaching you how to solve common problems and implement best practices.

The book begins by showing you how to build a blog application, before moving on to developing a social image bookmarking website, an online shop and an e-learning platform. You will learn how to build a search engine and implement a user activity stream. Furthermore, you will create a recommendation engine, an e-commerce coupon system and a content management system. The book will also teach you how to enhance your applications with AJAX, create RESTful APIs and setup a production environment for your Django projects.

After reading this book, you will have a good understanding of how Django works and how to integrate it with other technologies to build practical, advanced, web applications.

Table of Contents

Chapter 1: Building a Blog Application
Installing Django
Creating your first project
Designing the blog data schema
Creating an administration site for your models
Working with QuerySet and managers
Building list and detail views
Creating templates for your views
Adding pagination
Using class-based views
Summary
Chapter 2: Enhancing Your Blog with Advanced Features
Sharing posts by e-mail
Creating a comment system
Adding tagging functionality
Retrieving posts by similarity
Summary
Chapter 3: Extending Your Blog Application
Creating custom template tags and filters
Adding a sitemap to your site
Creating feeds for your blog posts
Adding a search engine with Solr and Haystack
Summary
Chapter 4: Building a Social Website
Creating a social website project
Using the Django authentication framework
User registration and user profiles
Building a custom authentication backend
Adding social authentication to your site
Summary
Chapter 5: Sharing Content in Your Website
Creating an image bookmarking website
Posting content from other websites
Creating a detail view for images
Creating image thumbnails using sorl-thumbnail
Adding AJAX actions with jQuery
Creating custom decorators for your views
Adding AJAX pagination to your list views
Summary
Chapter 6: Tracking User Actions
Building a follower system
Building a generic activity stream application
Using signals for denormalizing counts
Using Redis for storing item views
Summary
Chapter 7: Building an Online Shop
Creating an online shop project
Building a shopping cart
Registering customer orders
Launching asynchronous tasks with Celery
Summary
Chapter 8: Managing Payments and Orders
Integrating a payment gateway
Exporting orders to CSV files
Extending the admin site with custom views
Generating PDF invoices dynamically
Summary
Chapter 9: Extending Your Shop
Creating a coupon system
Adding internationalization and localization
Building a recommendation engine
Summary
Chapter 10: Building an e-Learning Platform
Creating an e-Learning platform
Building the course models
Creating models for diverse content
Creating custom model fields
Creating a content management system
Summary
Chapter 11: Caching Content
Displaying courses
Adding student registration
Accessing the course contents
Using the cache framework
Summary
Chapter 12: Building an API
Building a RESTful API
Summary

What You Will Learn

  • Build practical real-world web applications with Django
  • Use Django with other technologies such as Redis, Celery, Solr and Memcached
  • Develop pluggable Django applications
  • Create advanced features, optimize your code and use the cache framework
  • Add internationalization to your Django projects
  • Enhance the user experience using JavaScript and AJAX
  • Add social features to your projects
  • Build RESTful APIs for your applications

Authors

Table of Contents

Chapter 1: Building a Blog Application
Installing Django
Creating your first project
Designing the blog data schema
Creating an administration site for your models
Working with QuerySet and managers
Building list and detail views
Creating templates for your views
Adding pagination
Using class-based views
Summary
Chapter 2: Enhancing Your Blog with Advanced Features
Sharing posts by e-mail
Creating a comment system
Adding tagging functionality
Retrieving posts by similarity
Summary
Chapter 3: Extending Your Blog Application
Creating custom template tags and filters
Adding a sitemap to your site
Creating feeds for your blog posts
Adding a search engine with Solr and Haystack
Summary
Chapter 4: Building a Social Website
Creating a social website project
Using the Django authentication framework
User registration and user profiles
Building a custom authentication backend
Adding social authentication to your site
Summary
Chapter 5: Sharing Content in Your Website
Creating an image bookmarking website
Posting content from other websites
Creating a detail view for images
Creating image thumbnails using sorl-thumbnail
Adding AJAX actions with jQuery
Creating custom decorators for your views
Adding AJAX pagination to your list views
Summary
Chapter 6: Tracking User Actions
Building a follower system
Building a generic activity stream application
Using signals for denormalizing counts
Using Redis for storing item views
Summary
Chapter 7: Building an Online Shop
Creating an online shop project
Building a shopping cart
Registering customer orders
Launching asynchronous tasks with Celery
Summary
Chapter 8: Managing Payments and Orders
Integrating a payment gateway
Exporting orders to CSV files
Extending the admin site with custom views
Generating PDF invoices dynamically
Summary
Chapter 9: Extending Your Shop
Creating a coupon system
Adding internationalization and localization
Building a recommendation engine
Summary
Chapter 10: Building an e-Learning Platform
Creating an e-Learning platform
Building the course models
Creating models for diverse content
Creating custom model fields
Creating a content management system
Summary
Chapter 11: Caching Content
Displaying courses
Adding student registration
Accessing the course contents
Using the cache framework
Summary
Chapter 12: Building an API
Building a RESTful API
Summary

Book Details

ISBN 139781784391911
Paperback474 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You

Django: Web Development with Python Book Cover
Django: Web Development with Python
$ 67.99
$ 47.60
Web Development with Django Cookbook - Second Edition Book Cover
Web Development with Django Cookbook - Second Edition
$ 39.99
$ 28.00
Instant Django 1.5 Application Development Starter Book Cover
Instant Django 1.5 Application Development Starter
$ 12.99
$ 9.10
Python 3 Object-oriented Programming - Second Edition Book Cover
Python 3 Object-oriented Programming - Second Edition
$ 39.99
$ 28.00
Mastering Django: Core Book Cover
Mastering Django: Core
$ 39.99
$ 28.00
Building RESTful Python Web Services Book Cover
Building RESTful Python Web Services
$ 39.99
$ 28.00