Skip to content

Commit

Permalink
feat(settings): create log module if does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamad-liyaghi committed Aug 10, 2024
1 parent b3bd570 commit b1ad6fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
buck-out|
build|
dist"""
language_version: python3.10
language_version: python3.12
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
Expand Down
2 changes: 2 additions & 0 deletions config/settings/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
STATIC_URL = "static/"
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

os.makedirs(os.path.join(BASE_DIR, "logs"), exist_ok=True)

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-alpine
FROM python:3.12-alpine

ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
Expand Down

0 comments on commit b1ad6fb

Please sign in to comment.