Giter Site home page Giter Site logo

Comments (6)

josefnorlin avatar josefnorlin commented on August 16, 2024 1

Hurray! Running the website from http://127.0.0.1:8000 instead of http://localhost:8000 in the browser solved it!

Thanks for leading me in the right direction. Might add that it tips for the google login instructions as well.

Again, awesome work! And thanks for the quick response!

from demo-allauth-bootstrap.

aellerton avatar aellerton commented on August 16, 2024 1

Excellent!

I've updated the README to make this more clear - hopefully anyway.

I don't know why you got the No module named bootstrap3 error. That implies you're running a version of Python without that module installed, but it wouldn't work from make run if that were the case. Anyway, sounds like that isn't a problem any more.

from demo-allauth-bootstrap.

aellerton avatar aellerton commented on August 16, 2024

Thanks for the nice words :)

Getting the URIs right can be annoying. Facebook is even worse than Google, but I updated the instructions recently and hopefully it's a bit clearer.

It's almost certainly your Google credentials set up and not a bug. Usually when this happens to me it's that the Facebook/Google credentials aren't set up right, or the UI labels are misleading (Facebook).

Steps to check something like...

  1. Are you definitely serving the site on http://localhost:8000 ?
  2. In your Google credentials configuration does "authorised javascript origin" definitely include http://127.0.0.1:8000 ?
  3. On the same screen does "authorised redirect URIs" definitely include http://127.0.0.1:8000/accounts/google/login/callback/ ?

from demo-allauth-bootstrap.

josefnorlin avatar josefnorlin commented on August 16, 2024

Wow! That was a quick response! Thanks!

I've doublechecked the Google credentials thrice now so, they are correct. However, you write in 1) Are you definitely serving the site on http://localhost:8000 ?

It seems when I run "make run" that the server is at http://127.0.0.1:8000 but that shouldn't be a problem right?

But, when I want to launch the demo not using make, using "python manage.py runserver 127.0.0.1:8000" i get import errors: "No module named 'bootstrap3'.

Can that have something to do with it?

from demo-allauth-bootstrap.

Hritik01 avatar Hritik01 commented on August 16, 2024

I tried both http://127.0.0.1:8000/ and http://localhost:8000/ in my javascript origins. I am still getting the redirect_url_mismatch error.
Please help.

from demo-allauth-bootstrap.

aellerton avatar aellerton commented on August 16, 2024

from demo-allauth-bootstrap.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.