[Fixed]-Authenticate in Django without a database

4👍

The default set of authentication back-end processors is defined in the AUTHENTICATION_BACKENDS setting. See the Django documentation for Customizing authentication.

By default, AUTHENTICATION_BACKENDS is set to:

['django.contrib.auth.backends.ModelBackend']

That’s the basic authentication backend that checks the Django users database and queries the built-in permissions.

So, if you don’t want the django.contrib.auth.backends.ModelBackend authentication method, remove that from the list. You’ll probably want to find (or create) a different one and add that to the list.

Leave a comment