mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-13 17:42:26 +03:00
Fixing the default check on databases setting.
This commit is contained in:
parent
a1dff3e976
commit
b32718c955
|
@ -113,15 +113,7 @@ class Common(Configuration):
|
||||||
|
|
||||||
########## DATABASE CONFIGURATION
|
########## DATABASE CONFIGURATION
|
||||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
||||||
|
DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.repo_name}}')
|
||||||
DATABASES = values.DatabaseURLValue()
|
|
||||||
if DATABASES == {'default': {}}:
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
||||||
'NAME': "{{cookiecutter.repo_name}}",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
########## END DATABASE CONFIGURATION
|
########## END DATABASE CONFIGURATION
|
||||||
|
|
||||||
########## CACHING
|
########## CACHING
|
||||||
|
|
Loading…
Reference in New Issue
Block a user