Book description
Learn Django 2.0 with four end-to-end projects
About This Book- Learn Django by building real-world web applications from scratch
- Develop powerful web applications quickly using the best coding practices
- Integrate other technologies into your application with clear, step-by-step explanations and comprehensive example code
If you are a web developer who wants to see how to build professional sites with Django, this book is for you. You will need a basic knowledge of Python, HTML, and JavaScript, but you don't need to have worked with Django before.
What You Will Learn- Build practical, real-world web applications with Django
- Use Django with other technologies, such as Redis and Celery
- Develop pluggable Django applications
- Create advanced features, optimize your code, and use the cache framework
- Add internationalization to your Django projects
- Enhance your user experience using JavaScript and AJAX
- Add social features to your projects
- Build RESTful APIs for your applications
If you want to learn about the entire process of developing professional web applications with Django, then this book is for you. This book will walk you through the creation of four professional Django projects, teaching you how to solve common problems and implement best practices.
You will learn how to build a blog application, a social image-bookmarking website, an online shop, and an e-learning platform. The book will teach you how to enhance your applications with AJAX, create RESTful APIs, and set up a production environment for your Django projects. The book walks you through the creation of real-world applications, while solving common problems and implementing best practices. By the end of this book, you will have a deep understanding of Django and how to build advanced web applications
Style and approachThis easy-to-follow guide takes you through the process of building four different production-ready Django projects with a simple step-by-step approach.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
- Building a Blog Application
- Enhancing Your Blog with Advanced Features
- Extending Your Blog Application
- Building a Social Website
- Sharing Content in Your Website
-
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
-
Building an Online Shop
- Creating an online shop project
- Building a shopping cart
- Registering customer orders
- Launching asynchronous tasks with Celery
- Summary
- Managing Payments and Orders
-
Extending Your Shop
- Creating a coupon system
-
Adding internationalization and localization
- Internationalization with Django
- Preparing our project for internationalization
- Translating Python code
- Translating templates
- Using the Rosetta translation interface
- Fuzzy translations
- URL patterns for internationalization
- Allowing users to switch language
- Translating models with django-parler
- Format localization
- Using django-localflavor to validate form fields
- Building a recommendation engine
- Summary
- Building an E-Learning Platform
- Rendering and Caching Content
-
Building an API
-
Building a RESTful API
- Installing Django REST framework
- Defining serializers
- Understanding parsers and renderers
- Building list and detail views
- Creating nested serializers
- Building custom views
- Handling authentication
- Adding permissions to views
- Creating view sets and routers
- Adding additional actions to view sets
- Creating custom permissions
- Serializing course contents
- Summary
-
Building a RESTful API
-
Going Live
- Creating a production environment
- Creating a custom middleware
- Implementing custom management commands
- Summary
- Other Books You May Enjoy
Product information
- Title: Django 2 by Example
- Author(s):
- Release date: May 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788472487
You might also like
book
Django Unleashed
Django is an amazingly powerful system for creating modern, dynamic websites. But programming Django hasn’t always …
book
Django Standalone Apps: Learn to Develop Reusable Django Libraries
Develop standalone Django apps to serve as the reusable building blocks for larger Django projects. This …
book
Mastering Django: Core
Delivers absolutely everything you will ever need to know to become a master Django programmer About …
book
Django Project Blueprints
Develop stunning web application projects with the Django framework About This Book Build six exciting projects …