From b9bf845964bba7bfee4b45d47b9c52cd7aee2761 Mon Sep 17 00:00:00 2001 From: pwhipp Date: Thu, 10 Jul 2014 17:01:44 +1000 Subject: [PATCH] Added required postgres database configuration --- mayan/settings/includes/common.py | 10 ++++++---- mayan/settings/includes/secrets.py.example | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mayan/settings/includes/common.py b/mayan/settings/includes/common.py index 8f1be98249..d0e6c16f84 100644 --- a/mayan/settings/includes/common.py +++ b/mayan/settings/includes/common.py @@ -129,10 +129,12 @@ WSGI_APPLICATION = 'mayan.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - } -} + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'mayan', + 'USER': 'mayan', + 'PASSWORD': DBPASSWORD, + 'HOST': '', + 'PORT': ''}} # Internationalization # https://docs.djangoproject.com/en/1.6/topics/i18n/ diff --git a/mayan/settings/includes/secrets.py.example b/mayan/settings/includes/secrets.py.example index 285178747d..4bfcf67a72 100644 --- a/mayan/settings/includes/secrets.py.example +++ b/mayan/settings/includes/secrets.py.example @@ -1,2 +1,5 @@ +# Keep this restricted to just the stuff you really need to keep secret so that it does not need to change or +# be modified often. # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'Ei5lo4oh zooW4xaj ic6Uehaa Vahy2zae seej1OhK iwoh3ziX gai3Ohng Igh3phae' +DBPASSWORD = ''