re: How to manage Local vs Dev vs Prod in latest Django RestAPI? VIEW POST


I used to run a small website for my campus's library employees ran with Django. So take this with a grain of salt.

We would keep all common settings in a and then have a and You can then point to the environment specific with:

export DJANGO_SETTINGS_MODULE=<nonprod/prod>_settings.settings.

For common settings, at the bottom of our environmental settings we would from common_settings import *.

Info here:

code of conduct - report abuse