# -*- coding: utf-8 -*-
"""
    shortly.settings
    ~~~~~~~~~~~~~~~~

    Shortly config.

    :copyright: (c) 2014 by fsp.
    :license: BSD.
"""

import os


DEBUG = False
# Detect environment by whether debug named file exists or not
if os.path.exists(os.path.join(os.path.dirname(__file__), 'debug')):
    DEBUG = True

if DEBUG:
    REDIS_HOST = 'localhost'
    REDIS_PORT = 6379
    REDIS_DB = 0
else:
    REDIS_HOST = 'localhost'
    REDIS_PORT = 6379
    REDIS_DB = 0

# -*- coding: utf-8 -*-
"""
    shortly.settings
    ~~~~~~~~~~~~~~~~

    Shortly config.

    :copyright: (c) 2014 by fsp.
    :license: BSD.
"""

import os


DEBUG = False
# Detect environment by whether debug named file exists or not
if os.path.exists(os.path.join(os.path.dirname(__file__), 'debug')):
    DEBUG = True

if DEBUG:
    REDIS_HOST = 'localhost'
    REDIS_PORT = 6379
    REDIS_DB = 0
else:
    REDIS_HOST = 'localhost'
    REDIS_PORT = 6379
    REDIS_DB = 0

# -*- coding: utf-8 -*- shortly.settings     ~~~~~~~~~~~~~~~~      Shortly config.      :copyright: (c) 2014 by fsp.     :license: BSD. # Detect environment by whether debug named file exists or not