We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f95b57 commit bd3ec4aCopy full SHA for bd3ec4a
1 file changed
task_manager/settings.py
@@ -95,20 +95,21 @@
95
# Database
96
# https://docs.djangoproject.com/en/5.1/ref/settings/#databases
97
98
-if ENVIRONMENT == 'prod':
99
- DATABASES = {
100
- "default": dj_database_url.config(
101
- default=os.getenv("DATABASE_URL"),
102
- conn_max_age=600
103
- )
104
- }
105
-else: # dev
+if ENVIRONMENT == 'dev':
106
DATABASES = {
107
'default': {
108
'ENGINE': 'django.db.backends.sqlite3',
109
'NAME': BASE_DIR / 'db.sqlite3',
110
}
111
+else: # prod
+ DATABASES = {
+ "default": dj_database_url.config(
+ default=os.getenv("DATABASE_URL"),
+ conn_max_age=600
+ )
+ }
112
+
113
114
# Password validation
115
# https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators
0 commit comments