5 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
7 # Add apps and lib directories to PYTHONPATH
9 os.path.join(ROOT, 'apps'),
10 os.path.join(ROOT, 'lib'),
11 # add /lib/* paths here for submodules
14 from django.core.management import execute_manager
17 imp.find_module('settings') # Assumed to be in the same directory.
20 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" % __file__)
25 if __name__ == "__main__":
26 execute_manager(settings)