5 ms·
I do something very similar. But I just have dummy files in folder depending on the environment (so I do something like 'touch PRODUCTION' or 'touch STAGING') a
by wesleyzhao 15y ago
I do something very similar. But I just have dummy files in folder depending on the environment (so I do something like 'touch PRODUCTION' or 'touch STAGING') and based off which file is present I know which settings to serve.
Here's a good example (start at line 207): https://github.com/armon/DjangoProjectExample/blob/master/project/settings.py https://github.com/armon/DjangoProjectExample/blob/master/pr...