From 13cf85c9692ffec6c48b472b64c3913344e9cd57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 1 Dec 2017 17:40:40 +0100 Subject: [PATCH] misc: let wcsctl commands use django settings (#20394) --- wcsctl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcsctl.py b/wcsctl.py index 7ead8cadf..c05044f38 100755 --- a/wcsctl.py +++ b/wcsctl.py @@ -1,7 +1,10 @@ #! /usr/bin/env python +import os import sys +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wcs.settings") + import wcs.qommon.ctl ctl = wcs.qommon.ctl.Ctl(cmd_prefixes=['wcs.ctl'])