开发者社区> 问答> 正文

django-social-auth新浪微博 怎么配置redirect_uri?-python报错

django-social-auth新浪微博 怎么配置redirect_uri?

django-social-auth依赖于python-social-auth,使用源码里面的example跑了一下,并且加上新浪微博的backend,根据文档的写法需要有key,secret的配置,但是与新浪微博搞的时候有一个redirect_uri 没找到如何配置,如果不配就会出 error:redirect_uri_mismatch

SOCIAL_AUTH_WEIBO_KEY = '123592348'
SOCIAL_AUTH_WEIBO_SECRET = 'aa8626a4396ab90366e51292baeaeb1e'

请问这个redirect_uri应该如何配置?

展开
收起
montos 2020-05-30 11:37:35 464 0
1 条回答
写回答
取消 提交回答
  • https://github.com/omab/python-social-auth/issues/345

    2020-05-30 11:37:43
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载