2021-12-15 14:29:30 +00:00
|
|
|
# WhisperMaPhone
|
|
|
|
|
|
|
|
## Installing
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Clone
|
|
|
|
git clone https://tildegit.org/Matthias/WhisperMaPhone
|
|
|
|
cd WhisperMaPhone
|
|
|
|
|
|
|
|
# Create a virtual environment
|
|
|
|
# Python 3 should go without saying in 2021
|
|
|
|
python -m venv venv
|
|
|
|
|
|
|
|
# Activate
|
|
|
|
. ./venv/bin/activate
|
|
|
|
|
|
|
|
# Install Requirements
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
|
|
|
# To install xapian to power /search:
|
2022-01-02 19:23:24 +00:00
|
|
|
# NOTE: make sure the virtual enviroment is enabled before running this
|
2021-12-15 14:29:30 +00:00
|
|
|
# Check the latest version of xapian from https://github.com/xapian/xapian/tags
|
|
|
|
. install_xapain <version>
|
|
|
|
|
|
|
|
./manage.py rebuild_index
|
|
|
|
|
|
|
|
# Otherwise, disable xapian by patching settings.py like so
|
|
|
|
patch whispermaphone/settings.py <<EOF
|
|
|
|
54,55c54
|
|
|
|
< "ENGINE": "xapian_backend.XapianEngine",
|
|
|
|
< "PATH": str(BASE_DIR / "xapian_index")
|
|
|
|
---
|
|
|
|
> "ENGINE": "haystack.backends.simple_backend.SimpleEngine"
|
|
|
|
EOF
|
|
|
|
```
|
|
|
|
|
|
|
|
|