37 lines
783 B
Plaintext
37 lines
783 B
Plaintext
|
# 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:
|
||
|
# 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
|
||
|
```
|
||
|
|
||
|
|