1import os
2from decouple import config
3
4BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
5SECRET_KEY = config('SECRET_KEY')
6DEBUG = config('DEBUG', cast=bool)
7DATABASES = {
8 'default': {
9 'ENGINE': 'django.db.backends.postgresql_psycopg2',
10 'NAME': config('DB_NAME'),
11 'USER': config('DB_USER'),
12 'PASSWORD': config('DB_PASSWORD'),
13 'HOST': config('DB_HOST'),
14 'PORT': '',
15 }
16}
1ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=lambda v: [s.strip() for s in v.split(',')])
1SECRET_KEY=3izb^ryglj(bvrjb2_y1fZvcnbky#358_l6-nn#i8fkug4mmz!
2DEBUG=True
3DB_NAME=HELLO_DJANGO
4DB_USER=U_HELLO
5DB_PASSWORD=hA8(scA@!fg3*sc&xaGh&6%-l<._&xCf
6DB_HOST=127.0.0.1
1DEBUG = config('DEBUG', cast=bool)
2EMAIL_PORT = config('EMAIL_PORT', cast=int)
1from decouple import config, Csv
2
3ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())