mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-24 03:43:44 +00:00
Fixing the default check on databases setting.
This commit is contained in:
parent
a1dff3e976
commit
b32718c955
1 changed files with 1 additions and 9 deletions
|
|
@ -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 a new issue