Skip to content

Commit

Permalink
Изменён backend/settings.py с учётом нового .env.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugemos committed Aug 31, 2023
1 parent f5624ca commit 7cdb864
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

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

SECRET_KEY = 'django-insecure-hxvx#yj2evr6$5_e4&sw3(v@y&iy-k0urf-0g^c63nl$dqsa!l'
SECRET_KEY = os.getenv('SECRET_KEY')

DEBUG = True
DEBUG = os.getenv('DEBUG') == 'True'

ALLOWED_HOSTS = ['127.0.0.1', '158.160.27.72']
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS')
ALLOWED_HOSTS = ALLOWED_HOSTS.split(';') if ALLOWED_HOSTS else []

INSTALLED_APPS = [
'django.contrib.admin',
Expand Down

0 comments on commit 7cdb864

Please sign in to comment.