File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ jobs:
12
12
pip install django==5.0.2
13
13
pip install django-extensions
14
14
pip install ruff
15
+ pip django-environ
15
16
- name : Run linting tools
16
17
run : |
17
18
cd app/
18
19
ruff format .
19
20
- name : Run Tests
20
21
run : |
21
- cp .env.testing .env
22
22
cp .env.testing app/.env
23
23
cd app/
24
24
ls -al
Original file line number Diff line number Diff line change 13
13
import os
14
14
from pathlib import Path
15
15
16
+ import environ
17
+
16
18
# Build paths inside the project like this: BASE_DIR / 'subdir'.
17
19
BASE_DIR = Path (__file__ ).resolve ().parent .parent
18
20
21
+ # Take environment variables from .env file
22
+ environ .Env .read_env (os .path .join (BASE_DIR , ".env" ))
23
+
19
24
# Quick-start development settings - unsuitable for production
20
25
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
21
26
You can’t perform that action at this time.
0 commit comments