Beispiel #1
0
# django-compressor
COMPRESS_URL = STATIC_URL
COMPRESS_ENABLED = False

if "COMPRESS_ENABLED" not in locals() or not COMPRESS_ENABLED:
    COMPRESS_PRECOMPILERS = ()
    COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter']
    COMPRESS_JS_FILTERS = []

COMPRESS_STORAGE = 'config.storage.CachedS3BotoStorage'
COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
COMPRESS_PRECOMPILERS = (('text/less', 'lessc {infile} {outfile}'), )

# Celery Backend
cache_settings = aws.get_cache_endpoint()
if cache_settings is None:
    cache_settings = {
        'Address': os.environ.get('CACHE_URL', '127.0.0.1'),
        'Port': os.environ.get('CACHE_PORT', 6379)
    }
BROKER_URL = 'redis://%(Address)s:%(Port)i/1' % cache_settings
CELERY_DEFAULT_QUEUE = 'seed-deploy'
CELERY_QUEUES = (Queue(CELERY_DEFAULT_QUEUE,
                       Exchange(CELERY_DEFAULT_QUEUE),
                       routing_key=CELERY_DEFAULT_QUEUE), )

# email through SES (django-ses)
EMAIL_BACKEND = 'django_ses.SESBackend'

# Database
Beispiel #2
0
COMPRESS_ENABLED = False

if "COMPRESS_ENABLED" not in locals() or not COMPRESS_ENABLED:
    COMPRESS_PRECOMPILERS = ()
    COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter']
    COMPRESS_JS_FILTERS = []

COMPRESS_STORAGE = 'config.storage.CachedS3BotoStorage'
COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
COMPRESS_PRECOMPILERS = (
    ('text/less', 'lessc {infile} {outfile}'),
)

# Celery Backend
cache_settings = aws.get_cache_endpoint()
if cache_settings is None:
    cache_settings = {
        'Address': os.environ.get('CACHE_URL', '127.0.0.1'),
        'Port': os.environ.get('CACHE_PORT', 6379)
    }
BROKER_URL = 'redis://%(Address)s:%(Port)i/1' % cache_settings
CELERY_DEFAULT_QUEUE = 'seed-deploy'
CELERY_QUEUES = (
    Queue(
        CELERY_DEFAULT_QUEUE,
        Exchange(CELERY_DEFAULT_QUEUE),
        routing_key=CELERY_DEFAULT_QUEUE
    ),
)