Skip to content
Juan Manuel García edited this page Dec 30, 2013 · 4 revisions

The config service it's intended to provide a global access to a configuration object. By calling the get_config method you'll get the config object model for the project.

This service it's also a wrapper for the model Config.

from config_service import ConfigService

config = ConfigService().get_config()
if config.enable_billing:
    #bill customers...

Further information about the config model and it's properties on Config model.

The app manager is able to edit the config model properties using the django admin. The default config object is the one with id=1.