Skip to content

Assassin9520/django-like-lookup_custom

 
 

Repository files navigation

Django like lookup

https://travis-ci.org/PetrDlouhy/django-like-lookup.svg?branch=master

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.

Documentation

The full documentation is at https://django-like-lookup.readthedocs.io.

Quickstart

Install Django like lookup:

pip install django-like-lookup

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'like_lookup',
    ...
)

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

About

fork of Petr like-lookup

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 83.1%
  • Makefile 16.9%