Python settings 模块,HOST 实例源码

我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用settings.HOST

项目:python-ossi    作者:iskhomutov    | 项目源码 | 文件源码
def __init__(self):
        #TODO: Add assertions
        self.host = settings.HOST
        self.port = settings.PORT
        self.username = settings.USERNAME
        self.password = settings.PASSWORD
        self.pin = settings.PIN