Skip to content

Unconfigured providers should be ignored instead of throwing an ImproperlyConfigured exception #2343

@olivierdalang

Description

@olivierdalang

Hi !

Currently, an exception is thrown when a provider is added to INSTALLED_APPS but not configured from the admin : django.core.exceptions.ImproperlyConfigured: No Facebook app configured

IMO, it would be much better to just ignore unconfigured providers from the providers registry. This would allow apps to work out of the box. This would also allow adding several providers extensions, and leaving it to the website manager to enable the providers he actually wants from django admin. We could still have a warning in the logs to help out beginners.

In my setup, this issue means that when I deploy my app from scratch, I get an error out of the box (as the homepage redirects guests users to the login screen). It also prevents using the social login screen for the admin if you want to configure the app from the admin.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions