Skip to content

Commit

Permalink
Merge pull request #54 from AI4Bharat/v1.0
Browse files Browse the repository at this point in the history
Backend Changes
  • Loading branch information
Shanks0465 authored Sep 10, 2024
2 parents 45b0008 + 7bb75b8 commit 54843f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
from pathlib import Path
import os

from dotenv import load_dotenv

load_dotenv(dotenv_path="/home/ai4bharat/ai4b-website/backend/.env")

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

Expand All @@ -21,7 +25,7 @@
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-$b@55^do#pwyl)vdgf=5az6mk=g^w33nn63mc9cg&1a+oaje2l"
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
Expand Down

0 comments on commit 54843f3

Please sign in to comment.