Package: django-like
Contentsdjango-likeInformationRequerimentsInstallationIn your settings.pyUsageReportedDevelopmentExample project0.2.0 (2014-10-13)0.1.0  (2013-12-20)0.0.7  (2013-09-11)0.0.6  (2013-09-10)0.0.5  (2013-08-14)0.0.4  (2013-08-14)0.0.3  (2012-02-14)0.0.2  (2012-02-13)0.0.1  (2011-12-28)django-likeInformationdjango-like is a Django application that adds other useful fields.It is distributed under the terms of the GNU Lesser General Public
License <http://www.gnu.org/licenses/lgpl.html>RequerimentsDjango(>=1.1). It’s possible that works with other versions lower 1.1InstallationTo use the “like/ilike lookup” with Django 1.4, 1.5 or 1.6 you need to install django_like (this app make a monkey patching) or to patch your Django.To use the “like/ilike lookup” with Django 1.3, 1.2 or 1.1 you need to install django_like (this app make a monkey patching), You could patch your Django but I have not make a patch, but this will be very easy. You only have to see the monkey patch and to update the same, or you could see other patch and update more or less the same.To use the “like/ilike lookup” with Django 1.7 you only need to install django_like but now this applicationdoes not make monkey patching. Now Django provide an API to do it.In your settings.pyINSTALLED_APPS = (

    'django_like',

)Or apply some of the next patches (This is not neccesary, you can only install the app):Django 1.4Django 1.5Django 1.6UsageSomething that you can to do withlikesentenceMyModel.objects.filter(field_name__like='xx%YY%zz')
MyModel.objects.filter(field_name__ilike='xx%yy%zz')
User.objects.filter(username__like='a%in')It is more quick and more readable that something like this:MyModel.objects.filter(field_name__regex='^xx.*YY.*zz$')This app provider two newlookups: like and ilike.Now you can compare the time it takes to run the same query, many times, with like and with regexpython manage.py benchmark_likeThese are a results executing thebenchmark_likein my machine:Type & result \ Databasepostgresmysqlsqlliteoraclelike0:00:50.7270050:00:14.0256560:01:36.089407?:??:??.??????regex0:01:38.4100190:02:57.2556850:09:39.527765?:??:??.??????Improvement254%600%503%???%ReportedStack overflowTicket in DjangoPull requestPost in a blogDevelopmentYou can get the bleeding edge version of django-like by doing a clone
of its repositorygit clone git://github.com/goinnn/django-like.gitExample projectIn the source tree, you will find a directory calledexample. It contains
a readily setup project that uses django-like. You can run it as usual:python manage.py syncdb --noinput
python manage.py loaddata app_data
python manage.py runserver0.2.0 (2014-10-13)Support to Django 1.7.For Django 1.7, django_like use the lookup API0.1.0  (2013-12-20)Added example projectAdded tests (for SQLite, MySQL and PostgreSQL)Integrated with travis and coveralsPython2.6 compatible (benchmark_like)Added patche to Django 1.60.0.7  (2013-09-11)Add licese file0.0.6  (2013-09-10)Fix README typo0.0.5  (2013-08-14)Fix README typo0.0.4  (2013-08-14)Improve the READMEFix a littles bugsPython3 compatibleDjango 1.5 compatibleThanks to:Luke Winship0.0.3  (2012-02-14)Fix a broken link in the readme0.0.2  (2012-02-13)Add benchmark command0.0.1  (2011-12-28)First version to django-like