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

wsgi/base.py

so we can override on different files like this

override base on wsgi/staging.py
change wsgi config on production settings

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

Conclusion

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

--

--

Feri Lukmansyah
Feri Lukmansyah

Written by Feri Lukmansyah

A Software Engineer active on Upwork and Fiverr journal https://ferilukmansyah.dev

No responses yet