Investigate django-envrion
Currently, the deployment of this app uses a custom settings file created by Ansible and loaded as a Docker secret. Rather than having Ansible generate a free-form settings file, it would be nicer if custom settings were loaded from a simpler configuration file. Using a .env encironment file allows flexibility to use file-based and environment variable based configuration.
See https://medium.com/@djstein/modern-django-part-1-project-refactor-and-meeting-the-django-settings-api-d2784efb606f (thanks @ph448).