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"]:
|
if not config["success"]:
|
||||||
raise ImportError("tCommon token doesn't match")
|
raise ImportError("tCommon token doesn't match")
|
||||||
|
|
||||||
if not config["services"]["message"]:
|
if not config["services"]["blog"]:
|
||||||
raise ImportError("tblog isn't registered in tCommon")
|
raise ImportError("tBlog isn't registered in tCommon")
|
||||||
|
|
||||||
DEBUG = config["debug"]
|
DEBUG = config["debug"]
|
||||||
SECRET_KEY = config["services"]["message"]["token"]
|
SECRET_KEY = config["services"]["blog"]["token"]
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
STATIC_DIR = BASE_DIR / "tblog/static"
|
STATIC_DIR = BASE_DIR / "tblog/static"
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
CSRF_TRUSTED_ORIGINS = [config["services"]["message"]["url"]["pub"]]
|
CSRF_TRUSTED_ORIGINS = [config["services"]["blog"]["url"]["pub"]]
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
|
|
Loading…
Reference in a new issue