We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e0297 commit 827a14aCopy full SHA for 827a14a
backend/settings.py
@@ -5,9 +5,11 @@
5
6
# Build paths inside the project like this: BASE_DIR / 'subdir'.
7
BASE_DIR = Path(__file__).resolve().parent.parent
8
-from dotenv import load_dotenv
9
10
-load_dotenv()
+if DEBUG:
+ from dotenv import load_dotenv
11
+
12
+ load_dotenv()
13
14
# SECURITY WARNING: keep the secret key used in production secret!
15
SECRET_KEY = os.environ.get('SECRET_KEY', '<a string of random characters>')
0 commit comments