Open rkpip3 opened 4 years ago
You need to change path.to.function
to an actual Python dotted path to the function you use to load user roles.
Note that what's in master
is very old and integrates with django-oidc
which is no longer maintained. We're switching to mozilla-django-oidc
. Work for that is in the mozilla
branch of this repo.
@movestill any example project with mozilla-django-oidc, django rest api
Please help me with error:
Could not import 'path.to.function' for API setting 'LOAD_USER_ROLES'. ModuleNotFoundError: No module named 'path'.
LOAD_USER_ROLES = 'path.to.function'