Book Image

Django Project Blueprints

By : Asad Jibran Ahmed
Book Image

Django Project Blueprints

By: Asad Jibran Ahmed

Overview of this book

Django is a high-level web framework that eases the creation of complex, database-driven websites. It emphasizes on the reusability and pluggability of components, rapid development, and the principle of don't repeat yourself. It lets you build high-performing, elegant web applications quickly. There are several Django tutorials available online, which take as many shortcuts as possible, but leave you wondering how you can adapt them to your own needs. This guide takes the opposite approach by demonstrating how to work around common problems and client requests, without skipping the important details. If you have built a few Django projects and are on the lookout for a guide to get you past the basics and to solve modern development tasks, this is your book. Seven unique projects will take you through the development process from scratch, leaving no stone unturned. In the first two projects, you will learn everything from adding ranking and voting capabilities to your App to building a multiuser blog platform with a unique twist. The third project tackles APIs with Django and walks us through building a Nagios-inspired infrastructure monitoring system. And that is just the start! The other projects deal with customizing the Django admin to create a CMS for your clients, translating your web applications to multiple languages, and using the Elasticsearch search server with Django to create a high performing e-commerce web site. The seventh chapter includes a surprise usage of Django, and we dive deep into the internals of Django to create something exciting! When you're done, you'll have consistent patterns and techniques that you can build on for many projects to come.
Table of Contents (15 chapters)
Django Project Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Summary


This chapter probably had the least amount of code written for any chapter in this book. However, the functionality that we built here is probably more complicated than what we built in most chapters. I said at the start of the chapter that one of the reasons for the popularity of the Django framework is the admin app. I hope that by now you agree with me.

With less than 20 lines of code, we were able to create a system that rivals most CMS systems out there and is still more tailored to our client's needs. Unlike most CMS systems, we don't treat Car and Booking objects as pages or nodes. In our system, they are first-class objects, each with its own fields and individual functionality. However, as far as the client is concerned, the admin works like it would for any CMS, probably easier, because there are no extra fields like there are in most CMS solutions.

We have barely begun to scratch the surface of customizing the admin. There are a lot of features provided by the admin, catering...