Skip to content

Commit

Permalink
settings django changes
Browse files Browse the repository at this point in the history
  • Loading branch information
praeitor committed Dec 23, 2024
1 parent efec569 commit e05e7ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
POSTGRES_DB: kittygram
DB_HOST: postgres
DB_PORT: 5432
SECRET_KEY: r943ruj0938rjf9j09fj0932jf9023gj29few
DEBUG: False
run: |
python -m flake8 backend/
cd backend/
Expand Down
3 changes: 2 additions & 1 deletion backend/kittygram_backend/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# flake8: noqa
import os
from django.core.management.utils import get_random_secret_key
from pathlib import Path

from dotenv import load_dotenv
Expand All @@ -8,7 +9,7 @@

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

SECRET_KEY = os.getenv('SECRET_KEY')
SECRET_KEY = os.getenv('SECRET_KEY', get_random_secret_key())

DEBUG = os.getenv('DEBUG', 'False') == 'True'

Expand Down

0 comments on commit e05e7ac

Please sign in to comment.