def login(self, request):
        scope = request.POST.get('scope', self.scope)
        url = flat_url('https://www.douban.com/service/auth2/auth',
                       scope=scope,
                       client_id=self.consumer_key,
                       response_type='code',
                       redirect_uri=request.route_url(self.callback_route))
        return HTTPFound(url)
Initiate a douban login
dataset/ETHPy150Open bbangert/velruse/velruse/providers/douban.py/DoubanProvider.login