Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ucfchandra authored Nov 7, 2024
1 parent b04d97c commit 1f5ce0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@


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

# Take the environment variables from .env file
env = environ.FileAwareEnv()

environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
environ.Env.read_env(os.path.join(PARENT_DIR, '.env'))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
Expand Down

0 comments on commit 1f5ce0a

Please sign in to comment.