From 0743d5b0524f4ae5b0a9d20f118f7aa48927b37f Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Mon, 22 Feb 2021 14:32:03 +0100 Subject: [PATCH] Set Postres as default DB on project template. --- .../conf/project_template/project_name/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/orchestra/conf/project_template/project_name/settings.py b/orchestra/conf/project_template/project_name/settings.py index 571f8762..bd9a4708 100644 --- a/orchestra/conf/project_template/project_name/settings.py +++ b/orchestra/conf/project_template/project_name/settings.py @@ -116,12 +116,12 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - 'USER': '', # Not used with sqlite3. - 'PASSWORD': '', # Not used with sqlite3. - 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'test_myapp', + 'USER': 'testuser', + 'PASSWORD': 's3cretPass', + 'HOST': 'postgres', + 'PORT': 5432, 'CONN_MAX_AGE': 60*10 # Enable persistent connections } }