Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Will Kahn-Greene 8e81bd56e7 Change test settings so we use in-memory db 2013-06-04 21:53:04 -04:00
Will Kahn-Greene 97f0cf7aa6 Fix ESTestCase and 501/503 templates for middleware
ESTestCase now derives from django.test.TestCase which means
it requires DATABASES settings. This adds sqlite in-memory
settings to test_settings.py.

Moved the middleware error templates so that they're in
the elasticutils.contrib.django Django app.
2013-05-20 14:56:56 -04:00
Rob Hudson d96172e603 Added ES error middleware for Django (issue #47) 2013-03-19 10:15:19 -07:00
Will Kahn-Greene 6bd2c409df Issue 102. Fix django tasks code
This fixes the elasticutils.contrib.django.tasks code, updates the
docs, and adds tests so if it fails in the future, I'll know.
2013-03-18 19:46:49 -04:00
Will Kahn-Greene 6ccf9dde3e Massive update to pyelasticsearch
* nix pyes things
* update to pyelasticsearch things
* fixes MLT so it works with pyelasticsearch (requires fixes that
  should be in pyelasticsearch 0.3 when that gets released)
* changes MLT fields argument to mlt_fields
* nixes all the dump curl code
* cleans up imports
* fixes defaults so that S defaults to searching all indexes and
  all doctypes
* adjusts errors so they all derive from ElasticUtilsError
* cleans up get_es() and S.get_es() so they're correct
* add DeprecationWarning for deprecated things
* update test code for MLT

In elasticutils.contrib.django:

* ditch the thread-local caching of ElasticSearch objects (we'll
  implement something better soon since pyelasticsearch's ElasticSearch
  objects are thread-safe)
* removed statsd code from the django-related code
* change ES_HOSTS to ES_URLS
* update index method (need to add a new bulk_index method)
* update test code for django-related bits
2013-01-17 11:36:01 -05:00
Will Kahn-Greene 7dcc0344d2 Issue 84. Fix get_indexes/get_doctypes silliness
All the S.get_indexes() returned a list of indexes except the one
in Django contrib which could return a basestring or a list of
indexes.

Ditto for S.get_doctypes().

This fixes that, adds docs, and adds tests.
2012-10-17 09:19:48 -04:00
Will Kahn-Greene 3daf91b447 Fix tests so they run without Django 2012-06-28 11:45:23 -04:00