from lizard_ui.settingshelper import setup_logging

from ddsc_management.settings import *

DEBUG = True

# By default, var/log/django.log gets WARN level logging, the console gets
# DEBUG level logging.
LOGGING = setup_logging(BUILDOUT_DIR, sql=True)

# ENGINE: 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
# In case of geodatabase, prepend with:
# django.contrib.gis.db.backends.(postgis)
DATABASES = {
    # If you want to use another database, consider putting the database
    # settings in localsettings.py. Otherwise, if you change the settings in
    # the current file and commit them to the repository, other developers will
    # also use these settings whether they have that database or not.
    # One of those other developers is Jenkins, our continuous integration
    # solution. Jenkins can only run the tests of the current application when
    # the specified database exists. When the tests cannot run, Jenkins sees
    # that as an error.
    'default': {
        #'NAME': os.path.join(BUILDOUT_DIR, 'var', 'sqlite', 'test.db'),
        #'ENGINE': 'django.contrib.gis.db.backends.spatialite',
        # If you want to use postgres, use the two lines below.
        # 'NAME': 'ddsc_management',
        # 'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'USER': 'buildout',
        'PASSWORD': 'buildout',
        'HOST': '',  # empty string for localhost.
        'PORT': '',  # empty string for default.
        },
    }


try:
    from ddsc_management.localsettings import *
    # For local dev overrides.
except ImportError:
    pass

@@ -1002,17 +1002,16 @@
         
-#
 'NAME': 
@@ -1074,17 +1074,16 @@
         
-#
 'ENGINE'

fix settings