Set Postres as default DB on project template.
This commit is contained in:
parent
0636f15ee2
commit
0743d5b052
|
@ -116,12 +116,12 @@ WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
'NAME': 'test_myapp',
|
||||||
'USER': '', # Not used with sqlite3.
|
'USER': 'testuser',
|
||||||
'PASSWORD': '', # Not used with sqlite3.
|
'PASSWORD': 's3cretPass',
|
||||||
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
'HOST': 'postgres',
|
||||||
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
'PORT': 5432,
|
||||||
'CONN_MAX_AGE': 60*10 # Enable persistent connections
|
'CONN_MAX_AGE': 60*10 # Enable persistent connections
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue