A
A
Arkkienkeli2015-05-07 09:39:08
Django
Arkkienkeli, 2015-05-07 09:39:08

How to authenticate in Django using raw sql query?

Hello.
We need to make a simple custom backend for django.
The essence of his work is as follows. SQL query to get the login\password, transfer the username to the database with django, but still authenticate using data from another database. Actually everything.
There is a module that works with crowd like I described: https://github.com/gbezyuk/django-crowd , only it takes data, of course, from the crowd. I need the same thing, but with a SQL query.
The problem is that I don't know how to connect to the database and raw request from the backend.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2015-05-07
@Arkkienkeli

https://docs.djangoproject.com/en/1.8/topics/auth/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question