Skip to content

Commit

Permalink
A nu ka
Browse files Browse the repository at this point in the history
  • Loading branch information
Данил Данилыч committed Aug 16, 2023
1 parent 7251bef commit 090a196
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ POSTGRES_DB=kittygram
POSTGRES_USER=kittygram_user
POSTGRES_PASSWORD=kittygram_password
DB_NAME=kittygram
SECRET_KEY=django-insecure-cg6*%6d51ef8f#4!r3*$vmxm4)abgjw8mo!4y-q*uq1!4$-89$
SECRET_KEY=
DEBUG=
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

env:
SECRET_KEY: django-insecure-cg6*%6d51ef8f#4!r3*$vmxm4)abgjw8mo!4y-q*uq1!4$-89$
SECRET_KEY: ${{ secrets.SECRET_KEY }}

jobs:
tests:
Expand Down
5 changes: 4 additions & 1 deletion backend/kittygram_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

from dotenv import load_dotenv

load_dotenv()
env_path = Path('/backend/kittygram_backend/.env')
load_dotenv(dotenv_path=env_path)

# load_dotenv()

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

Expand Down

0 comments on commit 090a196

Please sign in to comment.