Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/pr...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: