Skip to Main Content
Django 3 By Example - Third Edition
book

Django 3 By Example - Third Edition

by Antonio Mele
March 2020
Beginner to intermediate content levelBeginner to intermediate
568 pages
12h 14m
English
Packt Publishing
Content preview from Django 3 By Example - Third Edition

9

Extending Your Shop

In the previous chapter, you learned how to integrate a payment gateway into your shop. You also learned how to generate CSV and PDF files.

In this chapter, you will add a coupon system to your shop. You will also learn how internationalization and localization work, and you will build a recommendation engine.

This chapter will cover the following points:

  • Creating a coupon system to apply discounts
  • Adding internationalization to your project
  • Using Rosetta to manage translations
  • Translating models using django-parler
  • Building a product recommendation engine

Creating a coupon system

Many online shops give out coupons to customers that can be redeemed for discounts on their purchases. An online coupon usually consists of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Django Unleashed

Django Unleashed

Andrew Pinkham

Publisher Resources

ISBN: 9781838981952Supplemental Content