"""
Django settings for vegout project.

For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '3l8-hcq4$+itfs@6s0oj*u%1aa0w(b%i2br9v2rgi$k-lt-*u&'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_extensions',
    'django_pdb',
    'restaurant',
    'bootstrap3',
    'leaflet',
    'taggit',
    'jstemplate',
)

LEAFLET_CONFIG = {
    'DEFAULT_CENTER': (50.6407351, 4.66696),
    'DEFAULT_ZOOM': 8,
    'MIN_ZOOM': 2,
    'MAX_ZOOM': 19,

    'PLUGINS': {
        'locate': {
            'css': ['css/L.Control.Locate.css'],
            'js': 'js/L.Control.Locate.js',
            'auto-include': True,
        },
        'awesome_markers': {
            'css': ['css/leaflet.awesome-markers.css'],
            'js': 'js/leaflet.awesome-markers.min.js',
            'auto-include': True,
        },
        'makercluster': {
            'css': ['css/MarkerCluster.Default.css', 'css/MarkerCluster.css'],
            'js': 'js/leaflet.markercluster.js',
            'auto-include': True,
        },
    },
}


TEMPLATE_LOADERS = (
    'hamlpy.template.loaders.HamlPyFilesystemLoader',
    'hamlpy.template.loaders.HamlPyAppDirectoriesLoader',
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'vegout.urls'

WSGI_APPLICATION = 'vegout.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_URL = '/static/'

JSTEMPLATE_DIRS = [ os.path.join(BASE_DIR, 'restaurant', 'templates') ]

try:
    from settings_local import *
except ImportError:
    pass

@@ -1831,247 +1831,8 @@
 %7D%0A%0A%0A
-TEMPLATE_LOADERS = (%0A    'hamlpy.template.loaders.HamlPyFilesystemLoader',%0A    'hamlpy.template.loaders.HamlPyAppDirectoriesLoader',%0A    'django.template.loaders.filesystem.Loader',%0A    'django.template.loaders.app_directories.Loader',%0A)%0A%0A
 MIDD
@@ -2263,19 +2263,956 @@
 eware',%0A
-
 )%0A%0A
+TEMPLATES = %5B%0A    %7B%0A        'BACKEND': 'django.template.backends.django.DjangoTemplates',%0A        'DIRS': %5B%5D,%0A        'OPTIONS': %7B%0A            'context_processors': %5B%0A                'django.contrib.auth.context_processors.auth',%0A                'django.template.context_processors.debug',%0A                'django.template.context_processors.i18n',%0A                'django.template.context_processors.media',%0A                'django.template.context_processors.static',%0A                'django.template.context_processors.tz',%0A                'django.contrib.messages.context_processors.messages',%0A            %5D,%0A            'loaders': %5B%0A                'hamlpy.template.loaders.HamlPyFilesystemLoader',%0A                'hamlpy.template.loaders.HamlPyAppDirectoriesLoader',%0A                'django.template.loaders.filesystem.Loader',%0A                'django.template.loaders.app_directories.Loader',%0A            %5D,%0A        %7D,%0A    %7D,%0A%5D%0A%0A
 ROOT_URL

use the new (1.8) TEMPLATE_LOADERS syntax