Source

django-socketio-on-dotcloud / hellodjango / settings / __init__.py

import sys

try:
    if not "--settings" in ''.join(sys.argv):
        from .dotcloud import *

except ImportError:
    import sys
    print ('Warning importing settings/dotcloud.py. Did you forget to '
           'symlink your currentenv settings?')

    import traceback
    print traceback.print_exc()