# -*- coding: utf-8 -*-
from .contrib import *  # noqa

DATABASES = {
    'default': {
        # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        # 'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        # Or path to database file if using sqlite3.
        'NAME': '',
        # The following settings are not used with sqlite3:
        'USER': '',
        'PASSWORD': '',
        # Empty for localhost through domain sockets or '127.0.0.1' for
        # localhost through TCP.
        'HOST': '',
        # Set to empty string for default.
        'PORT': '',
    }
}

# Project apps
INSTALLED_APPS += (
    'localities',
    'frontend',
    'social_users',
    'api'
)

LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/signin/'

PIPELINE_JS = {
    'contrib': {
        'source_filenames': (
            'js/leaflet.js',
            'js/leaflet.draw-src.js',
            'js/jquery-1.11.1.min.js',
            'js/bootstrap.js',
            'js/material.min.js',
            'js/ripples.min.js',
            'js/nlform.js',
            'js/signals.min.js',
            'js/hasher.min.js',
            'js/crossroads.min.js'
        ),
        'output_filename': 'js/contrib.js',
    },
    'appjs': {
        'source_filenames': (
            'js/clusterLayer.js',
            'js/csrf-ajax.js',
            'js/app.js',
            'js/map.js',
            'js/localitySidebar.js'
        ),
        'output_filename': 'js/appjs.js'
    }
}

PIPELINE_CSS = {
    'contrib': {
        'source_filenames': (
            'css/leaflet.css',
            'css/leaflet.draw.css',
            'css/bootstrap.min.css',
            'css/main.css',
            'css/material.min.css',
            'css/ripples.min.css',
            'css/material-wfont.min.css',
            'css/navbar.css',
            'css/sidebar.css',
            'css/nlf.css'
        ),
        'output_filename': 'css/contrib.css',
        'extra_context': {
            'media': 'screen, projection',
        },
    }
}
