def __init__(self):
username = config.CLOUDAPP_USERNAME
password = config.CLOUDAPP_PASSWORD
if not username or not password:
raise StorageError("Set 'cloudapp_username' and 'cloudapp_password' configs.")
self._cloudapp_auth = HTTPDigestAuth(username, password)
self._session = requests.Session()
self._session.headers = {
'Accept': 'application/json',
}
评论列表
文章目录