feat(base.py): add GITEA_ROOT_URL and configure logger
This commit is contained in:
@@ -16,6 +16,7 @@ import os
|
||||
from pathlib import Path
|
||||
|
||||
import dotenv
|
||||
import logging as lg
|
||||
|
||||
PROJECT_DIR = Path(__file__).resolve().parent.parent
|
||||
BASE_DIR = PROJECT_DIR.parent
|
||||
@@ -314,4 +315,10 @@ WAGTAILDOCS_EXTENSIONS = [
|
||||
TAILWIND_APP_NAME = "theme"
|
||||
|
||||
# Gitea API
|
||||
GITEA_URL = "http://localhost:3000/api/v1"
|
||||
GITEA_ROOT_URL = "http://localhost:3000"
|
||||
GITEA_URL = f"{GITEA_ROOT_URL}/api/v1"
|
||||
|
||||
lg.basicConfig(
|
||||
level=lg.DEBUG,
|
||||
format="%(asctime)s : %(levelname)s : %(filename)s:%(lineno)d : %(name)s :: %(message)s",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user