Skip to content
Snippets Groups Projects
Commit b4fc011b authored by Bastien Abadie's avatar Bastien Abadie
Browse files

App: use postgresql database from docker

parent 8b077653
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ elasticsearch==5.4.0
idna==2.6
olefile==0.44
Pillow==4.3.0
psycopg2==2.7.3.2
pytz==2017.2
requests==2.18.4
urllib3==1.22
......@@ -78,11 +78,16 @@ WSGI_APPLICATION = 'horae.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
# Use database configured by docker-compose
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'horae_dev',
'USER': 'devuser',
'PASSWORD': 'devdata',
'HOST': 'localhost',
'PORT': 9100,
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment