1. webriders
  2. django-template-project

Source

django-template-project / source / settings / __init__.py

1
2
3
4
5
6
7
8
9
import platform

DEPLOYMENT_SERVERS = ('your_domain.com',)
DEPLOYMENT = platform.node() in DEPLOYMENT_SERVERS

if DEPLOYMENT:
    from deployment import *
else:
    from local import *