X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fdorestad-bookings.git;a=blobdiff_plain;f=southsettings.py;h=338c62ea476d2f0089bf5d2851a3fb93949710c5;hp=63ff314cf6bb120314c2972f4e6a82c189b52569;hb=HEAD;hpb=d09fb5a3490ef7cf9eb957bd3ca7f87386203f02 diff --git a/southsettings.py b/southsettings.py index 63ff314..338c62e 100644 --- a/southsettings.py +++ b/southsettings.py @@ -2,7 +2,7 @@ # which requires more privileges. import sys -if 'manage.py' in sys.argv[0] and sys.argv[1] == 'migrate': +if len(sys.argv) >= 2 and 'manage.py' in sys.argv[0] and sys.argv[1] == 'migrate': import south try: