import os
import boris

from .base import STATIC_URL

# helper for building absolute paths
PROJECT_ROOT = os.path.abspath(os.path.dirname(boris.__file__))
p = lambda x: os.path.join(PROJECT_ROOT, x)

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'boris.db',
        'USER': '',
        'PASSWORD': '',
        'OPTIONS': {
            'charset': 'utf8',
            'init_command': 'SET '
                'storage_engine=MyISAM,'
                'character_set_connection=utf8,'
                'collation_connection=utf8_general_ci'
        },
    },
}

STATIC_ROOT = p('static')

ADMIN_MEDIA_PREFIX = STATIC_URL + "grappelli/"

TEMPLATE_LOADERS = (
    ('django.template.loaders.cached.Loader', (
        'django.template.loaders.filesystem.Loader',
        'django.template.loaders.app_directories.Loader',
    )),
)
# List of callables that know how to import templates from various sources.

SECRET_KEY = 'od94mflb73jdjhw63hr7v9jfu7f6fhdujckwlqld87ff'
import os
import boris

from .base import STATIC_URL

# helper for building absolute paths
PROJECT_ROOT = os.path.abspath(os.path.dirname(boris.__file__))
p = lambda x: os.path.join(PROJECT_ROOT, x)

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'boris',
        'USER': '',
        'PASSWORD': '',
        'OPTIONS': {
            'charset': 'utf8',
            'init_command': 'SET '
                'storage_engine=MyISAM,'
                'character_set_connection=utf8,'
                'collation_connection=utf8_general_ci'
        },
    },
}

STATIC_ROOT = p('static')

ADMIN_MEDIA_PREFIX = STATIC_URL + "grappelli/"

TEMPLATE_LOADERS = (
    ('django.template.loaders.cached.Loader', (
        'django.template.loaders.filesystem.Loader',
        'django.template.loaders.app_directories.Loader',
    )),
)
# List of callables that know how to import templates from various sources.

SECRET_KEY = 'od94mflb73jdjhw63hr7v9jfu7f6fhdujckwlqld87ff'

Change default database from sqlite to mysql.
Change default database from sqlite to mysql.
