Go to file
Matthias Portzel 7da4921d32 Fix bugs around editing and time
* Pre-fill the timezone with the offset in hours (correct), instead of minutes, like the DB stores
* Only change the timezone in JS if you're not editing
* Redirect back to a Thought after editing it
2022-01-12 11:08:56 -05:00
main Fix bugs around editing and time 2022-01-12 11:08:56 -05:00
templates/search Search but it actually works 2021-12-22 23:13:27 -08:00
whispermaphone License 2022-01-11 19:14:39 -05:00
.gitignore A little bit of progress on search 2021-12-15 09:29:30 -05:00
LICENSE License 2022-01-11 19:14:39 -05:00
README License 2022-01-11 19:14:39 -05:00
install_xapian.sh Super beta search 2021-10-21 10:00:25 -04:00
jetforce_app.py Refactor timezone logic into methods of Thought 2021-10-12 09:11:24 -04:00
manage.py Initial Commit 2020-09-05 22:27:11 -04:00
requirements.txt Search but it actually works 2021-12-22 23:13:27 -08:00

README

# WhisperMaPhone

## Copyright

This code (but not the name or text) for this project is released into the public domain (as specified in the file LICENSE).

## 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:
    # NOTE: make sure the virtual enviroment is enabled before running this
    # 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
```