2 from os.path import abspath, dirname, join
3 from site import addsitedir
5 path = addsitedir(abspath(join(dirname(__file__), '../external_libs')), set())
6 if path: sys.path = list(path) + sys.path
7 sys.path.insert(0, abspath(join(dirname(__file__), '../apps')))
8 sys.path.insert(0, abspath(join(dirname(__file__), '../lib')))
10 from django.core.management import execute_manager
12 import settings # Assumed to be in the same directory.
15 sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
18 if __name__ == "__main__":
19 execute_manager(settings)