1👍
✅
Any directory where you have write access will do, as long as its filesystem has enough space to store the Whoosh index, like /home/mysite/whoosh_index
(straight from the docs). Just make sure the contents aren’t made public by the webserver.
3👍
Any directory you wish. You can use this configuration:
import os, sys
PROJECT_ROOT = os.path.dirname(__file__)
HAYSTACK_WHOOSH_PATH = os.path.join(PROJECT_ROOT, 'search_index')
- [Django]-Virtualenv exists but cannot access it from bash script
- [Django]-How to import all django models and more in a script?
- [Django]-Pip install confluent-kafka gives error in mac
- [Django]-How to manage version controlled Django migrations as a team?
- [Django]-How would I render data from a Django model with a React frontend?
Source:stackexchange.com