django allauth facebook desenvolvimento local
estou a usardjango-allauth para autenticação do Facebook no desenvolvimento de um site e configurados de acordo:
dentro das configurações do aplicativo facebook no facebok:
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/
no Django admin eu criei novo aplicativo Social:
Provider: Facebook
name: test_login
client_id: xxx
Secret: xxx
Sites: http://127.0.0.1:8000/
como você pode ver eu adicionei um novo sitehttp://127.0.0.1:8000/
ao invés deexample.com
.
O SITE_ID no settings.py é o correto.
Então tudo deve estar funcionando, mas não é. Depois de clicar para entrar no Facebook eu recebo
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.
o que estou perdendo? O que não está configurado? Tanto quanto eu posso entender, eu deveria ser capaz de usar127.0.0.1:8000
para testes.