How to Use Multiple WSGI on Dockerized Django

Feri Lukmansyah
Jul 14, 2022


Photo by Sigmund on Unsplash

when dockerizing the Django project we need to split the configuration like this

working with multiple WSGI Configuration

we need to split that config like we split the settings files, like on Two Scoop of Django 3 for example


so we can override on different files like this

override base on wsgi/
change wsgi config on production settings

and configure your settings module for instance in my case is settings/


from here we can design django patterns for large-scale projects, without worrying about adjusting configuration settings in various modes such as in staging, production and development, we can separate everything based on the python file that we modularize