Environment-awared settings

1
2
3
4
5
6
import os

if os.uname()[1] == 'incubator': # incubator being the name of my production machine
	from settings_prod import *
else:
	from settings_dev import *

Comments

(Forgotten your password?)

You may use Markdown syntax here, but raw HTML will be removed.