oops
This commit is contained in:
parent
dc3e0bf03e
commit
8a648d23c4
1 changed files with 4 additions and 4 deletions
|
@ -11,17 +11,17 @@ config = requests.get(f"{tCOMMON_URL_INTERNAL}/api/initialize/", params={
|
|||
if not config["success"]:
|
||||
raise ImportError("tCommon token doesn't match")
|
||||
|
||||
if not config["services"]["message"]:
|
||||
raise ImportError("tblog isn't registered in tCommon")
|
||||
if not config["services"]["blog"]:
|
||||
raise ImportError("tBlog isn't registered in tCommon")
|
||||
|
||||
DEBUG = config["debug"]
|
||||
SECRET_KEY = config["services"]["message"]["token"]
|
||||
SECRET_KEY = config["services"]["blog"]["token"]
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
STATIC_DIR = BASE_DIR / "tblog/static"
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
CSRF_TRUSTED_ORIGINS = [config["services"]["message"]["url"]["pub"]]
|
||||
CSRF_TRUSTED_ORIGINS = [config["services"]["blog"]["url"]["pub"]]
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"django.contrib.admin",
|
||||
|
|
Loading…
Reference in a new issue