app.celery.MyCelery.config_from_envvar
- MyCelery.config_from_envvar(variable_name, silent=False, force=False)
Read configuration from environment variable.
The value of the environment variable must be the name of a module to import.
Example
>>> os.environ['CELERY_CONFIG_MODULE'] = 'myapp.celeryconfig' >>> celery.config_from_envvar('CELERY_CONFIG_MODULE')