我正在尝试遵循 haystack 教程。运行 manage.py rebuild index 时遇到错误
我收到以下错误:
WARNING: This will irreparably remove EVERYTHING from your search index.
Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.
Are you sure you wish to continue? [y/N] y
Removing all documents from your index because you said so.
All documents removed.
/Users/heri0n/python_env/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2013-04-07 16:14:15.481145) while time zone support is active.
RuntimeWarning)
Indexing 1 notes.
Failed to add documents to Solr: [Reason: None]
<response><lst name="responseHeader"><int name="status">400</int><int name="QTime">6</int></lst><lst name="error"><str name="msg">ERROR: [doc=haystacktester.note.3] unknown field 'django_id'</str><int name="code">400</int></lst></response>
我确实运行了 manage.py build_solr_schema > ~/solr-4.2.1/example/solr/conf/schema.xml
我不得不手动创建 conf 目录,因为它不存在。我注意到教程在我使用 4 时使用 Solr 3。conf 目录的位置是否可能改变?