You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am building the project, a warning is being shown.
Expected Result
Guardian authentication backend must be hooked.
Actual Result
When I am building the database/loading test data/creating superuser/running server;
I'm being shown the following warning:
System check identified some issues:
WARNINGS:
?: (guardian.W001) Guardian authentication backend is not hooked. You can add this in settings as eg: `AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend')`.
Notes
Operating System: macOS Mojave
Do you want me to work on this issue?
The text was updated successfully, but these errors were encountered:
@rajdeepbharati
I don't think RTD is using django-guardian as one of AUTHENTICATION_BACKENDS. It is being used for its other functions/classes - assign, get_object_for_user, GuardedModelAdmin (class).
I grepped all the files, searching for guardian and I found only these uses of it.
Also, AUTHENTICATION_BACKENDS was introduced during the configuration of django-allauth ( #commit), much after the configuration of django-guardian (related commits: #commit1, #commit2)
Details
Expected Result
Guardian authentication backend must be hooked.
Actual Result
When I am building the database/loading test data/creating superuser/running server;
I'm being shown the following warning:
Notes
Do you want me to work on this issue?
The text was updated successfully, but these errors were encountered: