Skip to content

Commit

Permalink
fixed: settings, makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chem1sto committed Aug 31, 2023
1 parent f468ff0 commit 7f632c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ help: # Show help


.PHONY: runbot-init
runbot-init: deletedb rundb migrate filldb runbot-db # Build and run Database Docker-image
runbot-init: deletedb rundb migrate filldb collectstatic runbot-db # Build and run Database Docker-image
@echo -e "$(COLOR_YELLOW)Starting initialization...$(COLOR_RESET)"
@source $$(poetry env info -p)/bin/activate

Expand Down
8 changes: 5 additions & 3 deletions src/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
from dotenv import find_dotenv

env = environ.Env()
if DEBUG := env.bool("DEBUG", default=True):
environ.Env.read_env(find_dotenv(".env", raise_error_if_not_found=True))

environ.Env.read_env(find_dotenv(".env", raise_error_if_not_found=True))

DEBUG = env.bool("DEBUG", default=True)

BASE_DIR = Path(__file__).resolve().parent.parent

Expand Down Expand Up @@ -55,7 +57,7 @@
},
]

WSGI_APPLICATION = "config.wsgi.application"
ASGI_APPLICATION = "config.asgi.application"


DATABASES = {
Expand Down

0 comments on commit 7f632c2

Please sign in to comment.