https://github.com/correct-syntax/keep-sabbath
Django app to auto-redirect visitors when it is the Sabbath day, with support for overriding on other Biblical Holy days
https://github.com/correct-syntax/keep-sabbath
django python3 redirect redirects sabbath
Last synced: about 3 hours ago
JSON representation
Django app to auto-redirect visitors when it is the Sabbath day, with support for overriding on other Biblical Holy days
- Host: GitHub
- URL: https://github.com/correct-syntax/keep-sabbath
- Owner: Correct-Syntax
- License: other
- Created: 2020-03-06T21:53:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T03:19:34.000Z (about 2 years ago)
- Last Synced: 2025-01-15T16:45:41.945Z (9 months ago)
- Topics: django, python3, redirect, redirects, sabbath
- Language: HTML
- Homepage:
- Size: 389 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Keep Sabbath
Keep Sabbath is a Django app to automatically redirect website visitors when it is the Sabbath day, with support for overriding on other Biblical Holy days.
## Introduction
Keep Sabbath is for webmasters with e-commerce shops, blogs, etc. who would like to keep the Biblical 7th-day Sabbath and other Holy days of the Bible Holy.
The django app allows you to easily setup a system for a Django-powered website that will automatically redirect visitors to a single page (explaining about the Sabbath, redirect, etc.) if it is the Sabbath day or another Holy day.
The app uses internal, offline calculations (via the SolarTime module) and the current date/time of the server to figure out if it is the Sabbath day (thus, if the user should be redirected), so you do not have to do it manually. It is optimized for performance and speed.
There is also an option to manually override it as well, which is useful for other Biblical Holy days.
The timing is based on the understanding that the 7th-day Sabbath day starts on 6th day ("Friday") evening and ends on 7th day ("Saturday") evening, according to the Bible.
## Features
- Simple setup
- 2 ways to use it
- Automatically redirects when it is the 7th day Sabbath
- Support for manual overriding
- Supports Django 3.2+## Installation
- ``pip install keep_sabbath``
- ``pip install pytz``## Documentation
The documentation can be found in the demo: ``example/examplewebsite``.
## Contributing
**All contributions are welcome!** Feel free to open a PR or ask questions. :)
## Releasing on PyPI
Navigate to the root directory
Run ``py -m build``
Then run ``twine upload dist/*`` and follow the prompts.
## License
Keep-Sabbath is licensed under the BSD 3-Clause License. Feel free to use as needed in your own projects. See the LICENSE for full copyright and license information.