mis*_*sak 4 django facebook django-allauth
我在开发网站时使用django-allauth进行Facebook身份验证,并相应地进行了设置:
在facebok上的facebook app设置中:
Namespace: test_login
App Domains: blank
Site URL: http://127.0.0.1:8000/
Canvas URL: http://127.0.0.1:8000/
Secure Canvas URL: https://127.0.0.1:8000/
Run Code Online (Sandbox Code Playgroud)
在Django管理员我创建了新的社交应用程序:
Provider: Facebook
name: test_login
client_id: xxx
Secret: xxx
Sites: http://127.0.0.1:8000/
Run Code Online (Sandbox Code Playgroud)
正如你所看到的,我添加了一个新网站http://127.0.0.1:8000/而不是example.com.
settings.py中的SITE_ID是正确的.
所以一切都应该有效,但事实并非如此.点击通过Facebook登录后我得到了
Given URL is not allowed by the Application configuration.:
One or more of the given URLs is not allowed by the App's settings.
It must match the Website URL or Canvas URL, or the domain must be a
subdomain of one of the App's domains.
Run Code Online (Sandbox Code Playgroud)
我错过了什么?什么没有配置?据我所知,我应该能够127.0.0.1:8000用于测试.
| 归档时间: |
|
| 查看次数: |
1594 次 |
| 最近记录: |