"""
This file is part of lulzbot shop.

Lulzbot is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Lulzbot is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Lulzbot.  If not, see <http://www.gnu.org/licenses/>.
"""
from .base_settings import *
# upon initial setup in an environment, copy this template file to
# settings.py and set the appropriate values. 
# settings.py should not be in version control as it contains
# site-specifc passwords and configurations

# Set the database connection parameters
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', 
        'NAME': 'lulzbot',     
        'USER': 'lulzbot',
        'PASSWORD': '',
        'HOST': '',              
        'PORT': '',             
    }
}

# Set the cache connection parameters
CACHES = {
    'default': {
        'BACKEND': 'redis_cache.RedisCache',
        'LOCATION': 'localhost:6379',
        'OPTIONS': {
            'DB': 1,
            'PASSWORD': '', # set in settings.py
            'PARSER_CLASS': 'redis.connection.HiredisParser'
        },
    },
}

# For LOCAL DEVELOPMENT purposes, you can set the cache beckend to this
#CACHES = {
#    'default': {
#        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
#        'LOCATION': 'lulzbot-cache'
#    }
#}


# For LOCAL DEVELOPMENT purposes, you can set the email backend to one of these
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# For LOCAL DEVELOPMENT purposes, you can set the email backend to one of these
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

#### SHIPWIRE SETTINGS #########
# Prod shipwire backend settings
#SHIPWIRE_BASE_MODULE = 'shipwire.shipwire_api.ShipwireAPI'
#SHIPWIRE_ACCOUNT_EMAIL = ''
#SHIPWIRE_PASSWORD = ''
#SHIPWIRE_SERVER = ''

# Test Shipwire backend settings
SHIPWIRE_BASE_MODULE = 'shipwire.test_api.LoremIpsumAPI'
SHIPWIRE_ACCOUNT_EMAIL = 'test_account'
SHIPWIRE_PASSWORD = 'test_password'
SHIPWIRE_SERVER = 'test'



if False:
    INSTALLED_APPS += [
        'debug_toolbar',
    ]
    INTERNAL_IPS=('168.93.96.4',)
