To make a query to get the data exactly in Django, I use filter
, like this:
usuarios = Usuarios.objects.filter(nome='Jonh')
This will generate a SQL similar to:
SELECT * FROM usuarios wHERE nome = 'Jonh'
Since I've been using Django for a short time, I'd like to know how I would do to make a LIKE
.
The database I'm using is Mysql.