Cloud-CV / Fabrik

:factory: Collaboratively build, visualize, and design neural nets in browser
GNU General Public License v3.0
1.13k stars 235 forks source link

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

Open agbiotec opened 4 years ago

agbiotec commented 4 years ago

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!1ctemg#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), } }