Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add settings/dev.py as in order for migration to work (modified from the provided dev.sample.py) #529

Open
agbiotec opened this issue Aug 11, 2020 · 0 comments

Comments

@agbiotec
Copy link

from .common import * # noqa: ignore=F405
import os

Database

https://docs.djangoproject.com/en/1.9/ref/settings/#databases

DEBUG = True

SECURITY WARNING: keep the secret key used in production secret!

SECRET_KEY = 's9&vp1jq1yzr!1c_temg#v_)j-a)i5+@vbsekmi6pbjl4l1&u@'

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.environ.get("POSTGRES_NAME", 'fabrik'),
'USER': os.environ.get("POSTGRES_USER", 'admin'),
'PASSWORD': os.environ.get("POSTGRES_PASSWORD", 'fabrik'),
'HOST': os.environ.get("POSTGRES_HOST", 'localhost'),
'PORT': os.environ.get("POSTGRES_PORT", 5432),
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant