Cheers,
Danny
> --
> You received this message because you are subscribed to the Google Groups "django-haystack" group.
> To post to this group, send email to django-...@googlegroups.com.
> To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en.
>
--
Kind regards,
Danny W. Adair
Director
Unfold Limited
New Zealand
Talk: +64 - 9 - 9555 101
Fax: +64 - 9 - 9555 111
Write: danny...@unfold.co.nz
Browse: www.unfold.co.nz
Visit/Post: 253 Paihia Road, RD 2, Kawakawa 0282, New Zealand
"We are what we repeatedly do. Excellence, then, is not an act but a habit."
==============================
Caution
The contents of this email and any attachments contain information
which is CONFIDENTIAL to the recipient. If you are not the intended
recipient, you must not read, use, distribute, copy or retain this
email or its attachments. If you have received this email in error,
please notify us immediately by return email or collect telephone call
and delete this email. Thank you. We do not accept any
responsibility for any changes made to this email or any attachment
after transmission from us.
==============================
I see. So these _projects_ are importing models from each other?
http://django-haystack.readthedocs.org/en/v1.2.6/searchsite_api.html#autodiscovery
The index will be determined from the default site:
haystack.site.get_index(MyModel)
if there's some importing going on between the projects haystack.site
may be returning "the other site"?
That's what it smells like.
P.S.: I believe this is all different in 2.0 but haven't looked at it yet.
Cheers,
Danny
So project One has a model B and C, and so does project Two - files
copied/symlinked?
Are boths project in the same virtual environment / sharing the same
haystack module?
The default will be haystack.sites.site - if you import _something_
from project One into project Two that can trigger other imports with
your autodiscover() possibly being called again
Cheers,
Danny
Ah, misunderstanding. Sorry I did mean "model class" not "instance".
>>>>They both import the same base app that includes the haystack indexes,
>>>> models, etc. But they don't import anything from each other.. each project
>>>> is basically a settings file and templates.
So you defined two indexes for the same model in the same (base) app?
And that app uses the default haystack.sites.site via autodiscover()?
That sounds dangerous - I actually asked a few days ago whether it was
even possible (no reply yet).
When you update the index for an object I believe something like this happens:
search_index = haystack.site.get_index(model_class)
search_index.update_object(instance)
but in your setup the first line "get me the index for this
model_class" has more than one answer?
Cheers,
Danny
--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en.