Closed GoogleCodeExporter closed 9 years ago
Putting:
import djapian
djapian.load_indexes()
at the bottom of my models.py, the above error disappears but I fall in an
import error:
from webapp.post.models import Obj
ImportError: No module named webapp.post.models
that I can not solve either...
(I am using djapian 2.2.4)
Original comment by sforne...@gmail.com
on 14 Sep 2009 at 9:50
What do you mean "django standalone app"? And why you cannot use urls.py?
Original comment by daevaorn
on 14 Sep 2009 at 10:54
Any webserver is running. Just a cron task script cleaning database for
example. no
view, no template, no urls.py, just ORM.
here is some explanations:
http://www.b-list.org/weblog/2007/sep/22/standalone-django-scripts/
Original comment by sforne...@gmail.com
on 14 Sep 2009 at 11:17
Djapian has 2 built-in management commands. They load indexes with
`load_indexes`
call without any problem.
Main rule here - place index loading before you want to use indexers and other
djapian's staff.
Original comment by daevaorn
on 14 Sep 2009 at 11:38
Original issue reported on code.google.com by
sforne...@gmail.com
on 14 Sep 2009 at 9:25