NIT_Sri_Electricity_Management_System / .env_base
.env_base
Raw
DJANGO_SU_USERNAME="admin"                     # Django superuser username
DJANGO_SU_EMAIL="ebilling@nitsri.ac.in"        # Django superuser email
DJANGO_SU_PASSWORD="admin@123"                 # Django superuser password

# Generate secret key using the following commands
# python3 manage.py shell
# >> from django.core.management.utils import get_random_secret_key
# >> print(get_random_secret_key())
SECRET_KEY="super-secret-key"                  # Django secret key (Don't leave blank)
DEBUG="true"                                   # Available: true, false (Set to false in production)
ALLOWED_HOSTS="*"                              # Django allowed hosts
CSRF_TRUSTED_ORIGINS="http://localhost:8000"   # Django CSRF trusted origins

GUNICORN_PORT=8000                             # Port on which gunicorn listens
NGINX_PORT=8000                                # Port on which nginx listens

# For postgresql: pip install psycopg2==2.9.7
DB_ENGINE="default"                            # Available: default, sqlite3, postgresql
DB_NAME="billing-db"                           # Database name
DB_USER="billing-user"                         # Database user
DB_PASSWORD="billing-pass"                     # Database password
DB_HOST="billingdb"                            # Database host
DB_PORT=5432                                   # Database port

EMAIL_HOST="smtp.gmail.com"
EMAIL_PORT=587
EMAIL_HOST_USER="ebilling@nitsri.ac.in"
EMAIL_HOST_PASSWORD="<ask-asrar>"
EMAIL_USE_TLS="true"
EMAIL_USE_SSL="false"