I am sure that many Django developers should face this problem when using social-auth. Initially, when you develop it, you would like to test it on your local server, therefore, you would redirect the domain name in your etc / hosts.
I came to this in the documentation:
https://github.com/omab/django-social-auth#facebook
If you determine the redirect URL on the Facebook settings page, be sure not to define http://localhost:8000
, because it will not work when testing. Instead, I define http://myapp.com and configure the mapping to / etc / hosts or using dnsmasq.
From my understanding, you cannot define any ports in / etc / hosts.
Therefore, defining this entry:
127.0.0.1 example.com
still not getting to my Django server, which runs on 127.0.0.1:8000.
How do you do this?
Thanks,
source share