#Created from the sitesettings.txt template
#This module is the base for all production/staging sites

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

#operating system USER determines site_id for multi-site capability
from getpass import getuser

USER = getuser()
if 'site' not in USER: USER = 'site_1'
try:
    SITE_ID = int(USER[-1])
except ValueError: 
    SITE_ID = 1


DEBUG = False
TEMPLATE_DEBUG = DEBUG

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': ''.join(['{{ deployment_root }}/database/','{{ project_name }}','_',USER,'.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.
    }
}


#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:" }}'

TEMPLATE_DIRS = (
            '{{ deployment_root }}/env/{{ project_name }}/templates/',
                )