From 393b8f766f04a2dbf484691b84d2546a5e30221e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 12 Aug 2016 12:27:15 +0200 Subject: CI: add configuration file and adapt Makefile and settings --- example_project/settings.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'example_project') diff --git a/example_project/settings.py b/example_project/settings.py index 18a715577..6d984f6e6 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -40,6 +40,18 @@ LOGIN_REDIRECT_URL = "/" + URL_PATH AUTH_PROFILE_MODULE = 'ishtar_common.IshtarUser' ACCOUNT_ACTIVATION_DAYS = 7 +# change this in local_settings +DATABASES = { + 'default': { + 'ENGINE': 'django.contrib.gis.db.backends.postgis', + 'NAME': 'ishtar', + 'USER': 'ishtar', + 'PASSWORD': 'ishtar', + 'HOST': 'postgis', + 'PORT': '5432', + } +} + # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. @@ -259,10 +271,6 @@ if DEBUG_TOOLBAR: ) DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': False} -import sys -if 'test' in sys.argv or 'test_coverage' in sys.argv: - DATABASES['default']['engine'] = 'sqlite3' - if SQL_DEBUG: LOGGING['loggers']['django.db.backends'] = { -- cgit v1.2.3