#Created from the sitesettings.txt template

#Import global project settings
from {{ project_package_name }}.settings import *

#This module is the base for all production/staging sites

DEBUG = False
TEMPLATE_DEBUG = DEBUG

#By default woven will deploy your development sqlite3 db using the name of the project.

#If you would like to use another backend you should define the default settings
#in your own sitesettings.txt template
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': '{{ deployment_root }}/database/{{ project_name }}.db', # Or path to database file if using sqlite3.
        'USER': '', # Not used with sqlite3.
        'PASSWORD': '', # Not used with sqlite3.
        'HOST': '',  # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',  # Set to empty string for default. Not used with sqlite3.
    }
}

#Amend this if required
SITE_ID = {{ site_id }}

#Normally you shouldn't amend these settings, unless you have changed your local media settings
MEDIA_ROOT = '{{ deployment_root }}/public/{{ MEDIA_URL|slice:"1:" }}'
STATIC_ROOT = '{{ deployment_root }}/env/{{ project_name }}/static/{{ STATIC_URL|slice:"1:" }}'

#The default layout allows for global templates with local site override
TEMPLATE_DIRS = ('{{ deployment_root }}/env/{{ project_name }}/templates/',
                '{{ deployment_root }}/env/{{ project_name }}/templates/{{ domain }}',)