2
0
python-capport/README.md

20 lines
956 B
Markdown
Raw Normal View History

2022-04-04 19:21:51 +02:00
# python Captive Portal
2022-04-07 13:26:52 +02:00
## Installation
2022-04-04 19:21:51 +02:00
Either clone repository (and install dependencies either through distribution or as virtualenv with `./setup-venv.sh`) or install as package.
[`pipx`](https://pypa.github.io/pipx/) (available in debian as package) can be used to install in separate virtual environment:
pipx install https://github.tik.uni-stuttgart.de/NKS/python-capport
2022-04-07 13:26:52 +02:00
In production put a reverse proxy in front of the local web ui (on 127.0.0.1:8000), and handle `/static` path either to `src/capport/api/static/` or your customized version of static files.
## Customization
Create `custom/templates` and put customized templates (from `src/capport/api/templates`) there.
2022-04-07 13:53:45 +02:00
Create `i18n/<langcode>` folders to put localized templates into (localized extends must use the full `i18n/.../basetmpl` paths though).
2022-04-07 13:26:52 +02:00
Requests with a `setlang=<langcode>` query parameter will set the language and try to store the choice in a session cookie.