PostgreSQL LIKE lookup functionality for Django. Django does contain __startswith, __endswith and __contains lookups, but all of them does escape "%" and "_" wildcard characters. The __like lookup is often faster, than the __regex lookup, so it can be used in cases when conditions are simple enough.
The full documentation is at https://django-like-lookup.readthedocs.io.
Install Django like lookup:
pip install django-like-lookup
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'like_lookup',
...
)
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Tools used in rendering this package: