mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 17:47:08 +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
|
||||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
|
||||
|
||||
DATABASES = values.DatabaseURLValue()
|
||||
if DATABASES == {'default': {}}:
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': "{{cookiecutter.repo_name}}",
|
||||
}
|
||||
}
|
||||
DATABASES = values.DatabaseURLValue('postgres://localhost/{{cookiecutter.repo_name}}')
|
||||
########## END DATABASE CONFIGURATION
|
||||
|
||||
########## CACHING
|
||||
|
|
Loading…
Reference in New Issue
Block a user