Пример #1
0
_.DJANGOAPP.SETTINGS            = AttrDict()
das = _.DJANGOAPP.SETTINGS
das.STATICFOLDER                = 'static'
das.STATICURL                   = '/static'
das.MEDIAFOLDER                 = 'media'
das.MEDIAURL                    = '/media'

_.DJANGOAPP.REQ_FOLDERS         = [das.STATICFOLDER, das.MEDIAFOLDER]



#
# stuff for the worker
#
_.CELERY                        = AttrDict()
_.CELERY.STARTSCRIPT_TMPL       = 'start_celery' # the filename in tmpl folder in repro
_.CELERY.STARTSCRIPT_NAME       = 'start_celery' # the name on the worker (inside _.BIN_PATH)
# this is for the server
_.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 = {