Skip to content

Commit

Permalink
updated settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Reeya123 committed Jul 9, 2024
1 parent c7d4e14 commit 55839a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
run: |
ls -R server # List all files and directories recursively
cat server/requirements.txt # Print the contents of the requirements file
print env
- name: Install Dependencies
run: |
Expand Down
7 changes: 7 additions & 0 deletions server/portaluserdb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
from datetime import timedelta
import configparser
from django.core.management.utils import get_random_secret_key
import logging #log the entire secrets dictionary to debug

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -74,6 +79,8 @@
except KeyError:
raise KeyError("EMAIL_BACKEND not found in secrets")


logger.info(f"Secrets loaded: {secrets}")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

Expand Down

0 comments on commit 55839a7

Please sign in to comment.