sness
blog of sness
Saturday, May 11, 2013
python - Django settings based on IP or hostname - Stack Overflow
python - Django settings based on IP or hostname - Stack Overflow
: "import os
if os.environ['ENVIRONMENT'] == 'production':
# Production
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = ....
else:
# Development"
'via Blog this'
Newer Post
Older Post
Home