diff options
author | Huang Haibin <haibin.huang@intel.com> | 2018-02-28 17:54:28 +0800 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-03-01 03:50:22 +0800 |
commit | c412b24619912b059bd748c0ed91c0a40ef71d2b (patch) | |
tree | 4866dbae3df9b7c7ef2eac48071d1ab0642a5cc0 /ocata/ocata/proxy | |
parent | b14e1359642e17daf769ca39fa01e644135191f0 (diff) |
settings.py replace config.py
the patch refer to https://gerrit.onap.org/r/#/c/23529
Change-Id: Ia42c9be995ef73ea12a4733cb967ffed1ce15101
Issue-ID: MULTICLOUD-138
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'ocata/ocata/proxy')
-rw-r--r-- | ocata/ocata/proxy/views/identityV3.py | 6 | ||||
-rw-r--r-- | ocata/ocata/proxy/views/services.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ocata/ocata/proxy/views/identityV3.py b/ocata/ocata/proxy/views/identityV3.py index 549f12b0..5f11d847 100644 --- a/ocata/ocata/proxy/views/identityV3.py +++ b/ocata/ocata/proxy/views/identityV3.py @@ -13,7 +13,7 @@ # limitations under the License. import logging -from ocata.pub.config import config +from django.conf import settings from newton_base.proxy import identityV3 as newton_identityV3 logger = logging.getLogger(__name__) @@ -23,11 +23,11 @@ DEBUG=True class Tokens(newton_identityV3.Tokens): def __init__(self): - self.proxy_prefix = config.MULTICLOUD_PREFIX + self.proxy_prefix = settings.MULTICLOUD_PREFIX self._logger = logger class TokensV2(newton_identityV3.TokensV2): def __init__(self): - self.proxy_prefix = config.MULTICLOUD_PREFIX + self.proxy_prefix = settings.MULTICLOUD_PREFIX self._logger = logger diff --git a/ocata/ocata/proxy/views/services.py b/ocata/ocata/proxy/views/services.py index d65da20a..7863393d 100644 --- a/ocata/ocata/proxy/views/services.py +++ b/ocata/ocata/proxy/views/services.py @@ -15,7 +15,7 @@ import logging from rest_framework import status -from ocata.pub.config import config +from django.conf import settings from newton_base.proxy import services as newton_services logger = logging.getLogger(__name__) |