Set Postres as default DB on project template.

This commit is contained in:
Santiago L 2021-02-22 14:32:03 +01:00
parent 0636f15ee2
commit 0743d5b052
1 changed files with 6 additions and 6 deletions

View File

@ -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
}
}