django-configurations
One of the main considerations when deploying a Django application to production is how to configure it. As you have seen throughout this book, the settings.py
file is where all your Django configuration is defined. Even third-party apps have their configuration in this file. You have already seen this in Chapter 12, Building a REST API, when working with the Django REST framework.
There are many ways to provide different configurations and switch between them in Django. If you have begun working on an existing application that already has a specific method of switching between configurations in development and production environments, then you should probably keep using that method.
When we release Bookr onto a product web server, in Chapter 17, Deploying a Django Application (Part 1 – Server Setup), we will need to switch to a production configuration, and that’s when we will use django-configurations
.
To install django-configurations
...