21👍
✅
make sure it’s a tuple:
AUTHENTICATION_BACKENDS = ('apps.apployment_site.auth.CustomAuth',)
note the comma at the end
0👍
I don’t think you need to actually import it into your view
. According to the documentation, Django will go through all your authentication backends when you call authenticate()
.
Thus, just make sure you have all the authentication backends you want in your settings.py
.
👤Alex
- Django. Invalid keyword argument for this function. ManyToMany
- Is there a way to hook Django's unittest into PyUnit in eclipse?
- Django-way of specifying channel image in rss feed
Source:stackexchange.com