X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=manage.py;fp=manage.py;h=bcdd55e27be9447bf6b224b8ba0cbc6802509862;hb=fc78a05df13a64c7bcc7a72c54a89ec1920f0308;hp=0000000000000000000000000000000000000000;hpb=efeeade067d90daa41d0f4a67cf7a9157dfc5df4;p=matthijs%2Fprojects%2Fdorestad-bookings.git diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..bcdd55e --- /dev/null +++ b/manage.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +from django.core.management import execute_manager +try: + import settings # Assumed to be in the same directory. +except ImportError: + import sys + 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__) + sys.exit(1) + +if __name__ == "__main__": + execute_manager(settings)