2 from django.core.management import execute_manager
8 logging.basicConfig(level=logging.DEBUG, stream=sys.stderr)
10 PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
11 sys.path += [os.path.realpath(os.path.join(*x)) for x in (
13 (PROJECT_ROOT, '..', 'apps'),
14 (PROJECT_ROOT, '..', 'lib/librarian'),
15 (PROJECT_ROOT, '..', 'lib')
19 import localsettings # Assumed to be in the same directory.
21 logging.exception("Failed to import settings")
25 if __name__ == "__main__":
26 execute_manager(localsettings)