зеркало из https://github.com/mozilla/batucada.git
46 строки
980 B
Python
46 строки
980 B
Python
from settings import *
|
|
|
|
# Useful settings for running a local instance of batucada.
|
|
|
|
DEBUG = True
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'NAME': 'batucada',
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
'HOST': '',
|
|
'PORT': '',
|
|
'USER': 'root',
|
|
'PASSWORD': '',
|
|
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},
|
|
}
|
|
}
|
|
|
|
TIME_ZONE = 'America/Toronto'
|
|
|
|
DEBUG_TOOLBAR_CONFIG = {
|
|
'INTERCEPT_REDIRECTS': False,
|
|
}
|
|
|
|
INSTALLED_APPS += (
|
|
'debug_toolbar',
|
|
'django_nose',
|
|
)
|
|
|
|
MIDDLEWARE_CLASSES += (
|
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
|
)
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
|
|
|
# Use dummy caching for development.
|
|
CACHE_BACKEND = 'dummy://'
|
|
CACHE_PREFIX = 'batucada'
|
|
CACHE_COUNT_TIMEOUT = 60
|
|
|
|
# Execute celery tasks locally, so you don't have to be running an MQ
|
|
CELERY_ALWAYS_EAGER = True
|
|
|
|
# Path to ffmpeg. This will have to be installed to create video thumbnails
|
|
FFMPEG_PATH = '/usr/bin/ffmpeg'
|