Skip to content
Browse files

Adding a manage.py script.

  • Loading branch information...
1 parent d245f83 commit c9b7896d0c2ec15328437b584982501dc81223b4 @gregmuellegger committed Feb 14, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 manage.py
View
9 manage.py 100755 → 100644
@@ -1,9 +1,10 @@
#!/usr/bin/env python
import os
+import sys
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+if __name__ == "__main__":
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "autofixture_tests.settings")
-
-if __name__ == '__main__':
from django.core.management import execute_from_command_line
- execute_from_command_line()
+
+ execute_from_command_line(sys.argv)

0 comments on commit c9b7896

Please sign in to comment.
Something went wrong with that request. Please try again.