Пример #1
0
_.CELERY.FLOWERSTARTSCRIPT_TMPL = 'start_flower' # the filename in tmpl folder in repro
_.CELERY.FLOWERSTARTSCRIPT_NAME = 'start_flower' # the name on the worker (inside _.BIN_PATH)
_.CELERY.FLOWERPORT             = "5555"


# NOT TRUE ANYMORE.. I HOPE PORTNUMERSS ECT WORK AS STRINGS AS WELL
# Attention: in the final config file (which is a python file) strings have
# to be escaped!! So use:
# {'key' : '"str"',}

# This will show up in every config
_.django_base_machine_config = {
    'DATABASE'    : {
        'NAME'    : None,
        'HOST'    : None,
        'PORT'    : None,
        },
    'TIME_ZONE'   : 'Europe/Zürich',
    'STATIC_ROOT' : ''
}

_.django_celery_worker_config = deepcopy(_.django_base_machine_config)
_.django_celery_worker_config.update({
    'BROKER':   {
        'HOST' : 'localhost',
        'PORT' : '5672',
        'VHOST': 'spaghetti_broker',
    },
})