Skip to content

Commit

Permalink
testing django-environ
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-gray-tangent committed Apr 29, 2024
1 parent 867afe9 commit 4cd2bc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
pip install django==5.0.2
pip install django-extensions
pip install ruff
pip django-environ
- name: Run linting tools
run: |
cd app/
ruff format .
- name: Run Tests
run: |
cp .env.testing .env
cp .env.testing app/.env
cd app/
ls -al
Expand Down
5 changes: 5 additions & 0 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
import os
from pathlib import Path

import environ

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

# Take environment variables from .env file
environ.Env.read_env(os.path.join(BASE_DIR, ".env"))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/

Expand Down

0 comments on commit 4cd2bc3

Please sign in to comment.