From b2d69c5cbd5a5f53f8c9275fa7da3e2abba0cd7e Mon Sep 17 00:00:00 2001
From: Ole Laursen <olau@iola.dk>
Date: Wed, 11 Dec 2013 15:50:14 +0000
Subject: [PATCH] Replace manage.py script with new script generated by Django
 1.6  - Legacy-Id: 6876

---
 ietf/manage.py | 27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

diff --git a/ietf/manage.py b/ietf/manage.py
index 8ee715e0f..f9726f9e6 100755
--- a/ietf/manage.py
+++ b/ietf/manage.py
@@ -1,27 +1,10 @@
 #!/usr/bin/env python
-# Copyright The IETF Trust 2007, All Rights Reserved
-
-# Don't complain about these DeprecationWarnings (we still
-# want to see others, though)
-import warnings
-warnings.filterwarnings("ignore", message="the sets module is deprecated")
-warnings.filterwarnings("ignore", message="the md5 module is deprecated; use hashlib instead")
-warnings.filterwarnings("ignore", message="the sha module is deprecated; use the hashlib module instead")
-
 import os
 import sys
 
-path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-if not path in sys.path:
-    sys.path.insert(0, path)
-
-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: Cannot find 'settings.py' or 'settings_local.py'.\nUsually these are in the directory containing %r.\n" % __file__)
-    sys.exit(1)
-
 if __name__ == "__main__":
-    execute_manager(settings)
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
+
+    from django.core.management import execute_from_command_line
+
+    execute_from_command_line(sys.argv)