Summary
In this chapter, you created a coupon system using sessions. You also learned the basics of internationalization and localization for Django projects. You marked code and template strings for translation, and you discovered how to generate and compile translation files. You also installed Rosetta in your project to manage translations through a browser interface. You translated URL patterns and you created a language selector to allow users to switch the language of the site. Then, you used django-parler
to translate models and you used django-localflavor
to validate localized form fields. Finally, you built a recommendation engine using Redis to recommend products that are usually purchased together.
In the next chapter, you will start a new project. You will build an e-learning platform with Django using class-based views and you will create a custom content management system.