Q: Search string in database column django query I have a field in db which contains string like "Food,Financial,Health" . I need to search string which is startswith "Fi" in that field. I can search string using contains but i need to search startswith in django query. Anyone suggest me to do that.

A: You can use startswith in django query..
SomeModel.objects.filter(stringField__startswith='What')


A: You can use the django __startswith filter attribute. 
YourModelClass.objects.filter(fieldname__startswith='Fi')

See the docs here:
https://docs.djangoproject.com/en/1.11/ref/models/querysets/#startswith

A: Modelname.objects.filter(attributename__istartswith='Fi')

for more details refer to https://docs.djangoproject.com/en/1.11/ref/models/querysets/
