Source

eyes / eyeswebapp / manage.py

#!/usr/bin/env python
from django.core.management import execute_manager
try:
    import settings  # Assumed to be in the same directory.
except ImportError:  # pragma: no cover
    import sys
    sys.stderr.write("Error: Can't find the file 'settings.py' in the")
    sys.stderr.write("directory containing %r. It appears you've" % __file__)
    sys.stderr.write("customized things. You'll have to run django-admin.py,")
    sys.stderr.write("passing it your settings module.\n(If the file")
    sys.stderr.write("settings.py does indeed exist, it's causing an")
    sys.stderr.write(" ImportError somehow.)\n")
    sys.exit(1)

if __name__ == "__main__":  # pragma: no cover
    execute_manager(settings)