From 17ecb59dbb26fdb015225c90d34fd7db78427cbf Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 7 May 2018 22:03:13 +1000 Subject: [PATCH] Move to using postgresql - Need to write a shell script to automate db install - For now: - https://gist.github.com/sirodoht/f598d14e9644e2d3909629a41e3522ad - https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-django-application-on-ubuntu-14-04 --- InvenTree/InvenTree/settings.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index a8df6c6d5e..a158d2ff07 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -106,8 +106,13 @@ WSGI_APPLICATION = 'InvenTree.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'inventree_db.sqlite3'), + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': 'inventree', + 'USER': 'inventreeuser', + 'PASSWORD': 'inventree', + 'HOST': 'localhost', + 'PORT': '', + #'NAME': os.path.join(BASE_DIR, 'inventree_db.sqlite3'), } }