我试图沿着草堆教程跟随。 我碰到一个错误,当我运行manage.py重建索引
我得到以下错误:
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 /例子/ Solr的/ conf目录/ schema.xml中
我不得不手动创建conf目录,因为它不存在。 我注意到教程使用Solr的3,而我在4做过的conf目录的变化也许是位置?