mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 21:44:52 +03:00
change env vars back to og
This commit is contained in:
parent
18388689aa
commit
a284b08aec
|
@ -112,8 +112,8 @@ DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
'NAME': '{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}',
|
'NAME': '{% if cookiecutter.windows == 'y' %}localhost{% endif %}/{{cookiecutter.project_slug}}',
|
||||||
'USER': env.db('DATABASE_USER', default=''),
|
'USER': env.db('POSTGRES_USER', default=''),
|
||||||
'PASSWORD': env.db('DATABASE_PASSWORD', default=''),
|
'PASSWORD': env.db('POSTGRES_PASSWORD', default=''),
|
||||||
'HOST': 'localhost',
|
'HOST': 'localhost',
|
||||||
'PORT': '',
|
'PORT': '',
|
||||||
'CONN_MAX_AGE': 0
|
'CONN_MAX_AGE': 0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
# PostgreSQL
|
# PostgreSQL
|
||||||
DATABASE_PASSWORD=mysecretpass
|
POSTGRES_PASSWORD=mysecretpass
|
||||||
DATABASE_USER=postgresuser
|
POSTGRES_USER=postgresuser
|
||||||
|
|
||||||
# General settings
|
# General settings
|
||||||
# DJANGO_READ_DOT_ENV_FILE=True
|
# DJANGO_READ_DOT_ENV_FILE=True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user