From 0aec9bd27c6651f1a726b8afdad37fd29173f9b8 Mon Sep 17 00:00:00 2001 From: "Nick Seidenman (N6)" Date: Tue, 14 Feb 2017 16:43:19 +1100 Subject: [PATCH] Switched to using posgresql for db. --- .gitignore | 1 + pinaxcon/settings.py | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6d002ed0..d22a5f62 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ dev.db .coverage pinaxcon/site_media/ local_settings.py +log diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index 7783573a..c60747ac 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -9,9 +9,17 @@ BASE_DIR = PACKAGE_ROOT DEBUG = True #bool(int(os.environ.get("DEBUG", "1"))) DATABASES = { - "default": { - "ENGINE": "django.db.backends.sqlite3", - "NAME": os.path.join(PROJECT_ROOT, "dev.db"), + #"default": { + # "ENGINE": "django.db.backends.sqlite3", + # "NAME": os.path.join(PROJECT_ROOT, "dev.db"), + #} + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'pycontest', + 'USER': 'nicks', + 'PASSWORD': 'spam&eggs', + 'HOST': 'localhost', + 'PORT': '', } }