DEV Community

Discussion on: How to manage Local vs Dev vs Prod settings.py in latest Django RestAPI?

Collapse
 
thecal714 profile image
Sean Callaway

I'd take a look at this article for how to setup multiple settings modules. However, I do use environment variables (DJANGO_SETTINGS_MODULE) to load the correct one in CI and in Docker containers.

Collapse
 
thammuio profile image
Suri Nuthalapati

Thanks I will test out this link and update on how it goes..

Collapse
 
thammuio profile image
Suri Nuthalapati

this article Worked for me. Thank you..

Collapse
 
thecal714 profile image
Sean Callaway

Glad to hear it!