[Answer]-Django table search method, filter, index_together or haystack

1👍

I don’t know if index_together or haystack is better for your problem but I can answer your question about adding index_together to your model.

For Django < 1.7, Django will not change the database after the initial syncdb. If you want to migrate models and data, you have to use South, a third party Django app.

http://south.aeracode.org/

The documentation on the website is pretty good and it’s easy to use once you learn the basics. I use it in all of my Django projects to slowly morph the models and data as the requirements and features change.

For Django >= 1.7 (not released yet), the model and data migrations will be included in Django and you won’t have to use South.

https://docs.djangoproject.com/en/1.7/topics/migrations/

Leave a comment