From 92891fc07d944b6e2eeda379b697e6ef1bb29987 Mon Sep 17 00:00:00 2001 From: mark-tesobe Date: Thu, 12 Jan 2023 20:27:36 +0800 Subject: [PATCH] FIX: reverted to 46d1d760751501684273ea74bdd75ecd2312fdc1 --- README.md | 2 +- apimanager/apimanager/settings.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e43a018..f28a663 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ or maybe upgrade dependency version, If still facing issue to run **pip install ├── static-collected └── venv ``` -6. Then, update information in local_setting.py file, the example is below for updating information. For this file, required **BASE_DIR**, **EXCLUDE_APPS**, **EXCLUDE_FUNCTIONS**, **EXCLUDE_URL_PATTERN**, **API_EXPLORER_APP_NAME**, **API_DATEFORMAT**, **SECRET_KEY**, **API_HOST**, **OAUTH_CONSUMER_KEY** and **OAUTH_CONSUMER_SECRET** to run this app. For this purpose, must be OBP-API running locally. Follow these steps to run [OBP-API Local](https://github.com/OpenBankProject/OBP-API). +6. Then, update information in local_setting.py file, the example is below for updating information. For this file, required **OAUTH_CONSUMER_KEY** and **OAUTH_CONSUMER_SECRET** to run this app. For this purpose, must be OBP-API running locally. Follow these steps to run [OBP-API Local](https://github.com/OpenBankProject/OBP-API). ```python diff --git a/apimanager/apimanager/settings.py b/apimanager/apimanager/settings.py index 8404de3..991f566 100644 --- a/apimanager/apimanager/settings.py +++ b/apimanager/apimanager/settings.py @@ -308,7 +308,10 @@ CALLBACK_BASE_URL = "" UNDEFINED = "" # Local settings can replace any value ABOVE -from apimanager.local_settings import BASE_DIR, EXCLUDE_APPS, EXCLUDE_FUNCTIONS, EXCLUDE_URL_PATTERN, API_EXPLORER_APP_NAME, API_DATEFORMAT, SECRET_KEY, API_HOST, OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET # noqa +try: + from apimanager.local_settings import * # noqa +except ImportError: + pass # EVERYTHING BELOW HERE WILL *NOT* BE OVERWRITTEN BY LOCALSETTINGS! # DO NOT TRY TO DO SO YOU WILL BE IGNORED!