Skip to content

Commit

Permalink
Secret key from file
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Apr 28, 2024
1 parent 3f510b8 commit 049c36d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions online_competitions/settings/prod_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

from .test_settings import *


def secret(secret_name: str) -> str:
secret_path = BASE_DIR / '.secrets' / secret_name

return secret_path.read_text()


DEBUG = False

SECRET_KEY = secret('django_secret_key.txt')

ADMINS = [('Kovacs', '[email protected]'), ('Masrna', '[email protected]')]

# Email Settings
Expand Down

0 comments on commit 049c36d

Please sign in to comment.