Code Monkey home page Code Monkey logo

Comments (5)

cademan avatar cademan commented on May 16, 2024

I forgot to post this as well. The error page highlights this piece of code in the connection.html template for where the error occurs:

{% for base_account in form.accounts %}

from django-allauth.

cademan avatar cademan commented on May 16, 2024

It seems like the error must be occuring in the socailaccount/models.py file in this code:

def get_provider_account(self):
    for f in ['twitteraccount', 'openidaccount', 'facebookaccount']:
        try:
            return getattr(self, f)
        except self._meta.get_field_by_name(f)[0].model.DoesNotExist:
            pass
    assert False

Not sure why it would be raising an exception though as it looks like it should be passing it. I'm a complete python/django noob. I'll fool around with this more when I get home.

from django-allauth.

cademan avatar cademan commented on May 16, 2024

I wonder if the exception can be simplified to just be

except:

??? Have to look when I get home

from django-allauth.

cademan avatar cademan commented on May 16, 2024

changing

 except self._meta.get_field_by_name(f)[0].model.DoesNotExist:

to

except:

worked. It appears that the exception was being caught but it was then raising another exception on get_field_by_name(f)[0]

from django-allauth.

tijs avatar tijs commented on May 16, 2024

I think this should be re-opened. Basically when you remove one of the default providers, which should be possible in theory, the template for social connections no longer works. I get the same error when removing the openid app (which i'm not using).

from django-allauth.

Related Issues (20)

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.