aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeth Flanagan <elizabeth.flanagan@intel.com>2015-01-13 11:53:12 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2015-01-14 11:34:11 +0000
commitac3dc509335e7c5e0bb12a183877bf1461b52bbf (patch)
treeb2d1014dd9c306423f7f94c5ab214ea05e7df09b
parent45872abd28e22d20226c3b4e2d832634282883ad (diff)
downloadbuildhistory-web-ac3dc509335e7c5e0bb12a183877bf1461b52bbf.tar.gz
buildhistory-web-ac3dc509335e7c5e0bb12a183877bf1461b52bbf.tar.bz2
buildhistory-web-ac3dc509335e7c5e0bb12a183877bf1461b52bbf.zip
import.py: setup_environ depreciated in 1.6
setup_environ is depreciated in 1.5. This is the recommended way of importing settings in 1.6 (NOTE: This is different in 1.7) Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
-rwxr-xr-xwarningmgr/import.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/warningmgr/import.py b/warningmgr/import.py
index fa6f582..2c8fb79 100755
--- a/warningmgr/import.py
+++ b/warningmgr/import.py
@@ -39,12 +39,10 @@ def main():
sys.path.append(newpath)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
- from django.core.management import setup_environ
from django.db import transaction
from warningmgr.models import WarningItem, Build
- import settings
- setup_environ(settings)
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
# Set path to OE lib dir so we can import the buildhistory_analysis module
basepath = os.path.abspath(args.corebasepath)