2014-04-22 16:32:55 +02:00
|
|
|
import logging
|
2013-12-23 19:58:44 +01:00
|
|
|
HOST = 'localhost'
|
|
|
|
PORT = '8000'
|
2014-04-22 16:32:55 +02:00
|
|
|
# pastelog is just "paste", but customized to accept logging options
|
|
|
|
WSGI_SERVER = 'pastelog'
|
|
|
|
# these are pastelog-specific options for logging engine
|
|
|
|
TRANSLOGGER_OPTS = {
|
|
|
|
'logger_name': 'accesslog',
|
|
|
|
'set_logger_level': logging.WARNING,
|
|
|
|
'setup_console_handler': False }
|
2014-03-26 13:31:57 +01:00
|
|
|
WSGI_SERVER_OPTIONS = {}
|
|
|
|
|
2013-12-23 19:58:44 +01:00
|
|
|
DEBUG = True
|
|
|
|
DB_URI = 'sqlite:///techrec.db'
|
|
|
|
AUDIO_OUTPUT = 'output/'
|
|
|
|
AUDIO_INPUT = 'rec/'
|
2014-02-21 18:42:25 +01:00
|
|
|
AUDIO_INPUT_FORMAT = '%Y-%m/%d/rec-%Y-%m-%d-%H-%M-%S.mp3'
|
2014-02-24 15:20:45 +01:00
|
|
|
AUDIO_OUTPUT_FORMAT = 'techrec-%(time)s-%(name)s.mp3'
|
2013-12-23 19:58:44 +01:00
|
|
|
FORGE_TIMEOUT = 20
|
2013-12-23 22:34:24 +01:00
|
|
|
FORGE_MAX_DURATION = 3600*5
|
2014-05-12 20:25:04 +02:00
|
|
|
FFMPEG_OUT_CODEC = ['-acodec', 'copy']
|
2014-03-02 01:17:35 +01:00
|
|
|
FFMPEG_OPTIONS = ['-loglevel', 'warning', '-n']
|
2014-04-14 18:50:50 +02:00
|
|
|
FFMPEG_PATH = 'ffmpeg'
|
2014-05-03 03:27:06 +02:00
|
|
|
# tag:value pairs
|
|
|
|
TAG_EXTRA = {}
|
|
|
|
# LICENSE URI is special because date need to be added
|
|
|
|
TAG_LICENSE_URI = None
|
2019-11-15 19:20:56 +01:00
|
|
|
|
|
|
|
STATIC_FILES='static/'
|
|
|
|
STATIC_PAGES='pages/'
|
|
|
|
try:
|
|
|
|
from pkg_resources import resource_filename, resource_isdir
|
|
|
|
if resource_isdir('techrec', 'pages'):
|
|
|
|
STATIC_PAGES = resource_filename('techrec', 'pages')
|
|
|
|
STATIC_FILES = resource_filename('techrec', 'static')
|
|
|
|
else:
|
|
|
|
print "invece dice", resource_filename('techrec', 'static')
|
|
|
|
except ImportError:
|
|
|
|
logging.exception("Error loading resources from installed part")
|