OpenGovAus/legistream-site
๐ฆ๐บ The easiest way to watch Aussie parliaments live
legistream (legistream-site)
Legistream is the easiest way to stream Australian parliaments live. Legistream bypasses the need to use the often slow and outdated state/territory parliament websites, streamlining the experience. Legistream also bypasses the need to use a Flash player on both the NT and QLD websites, offering a more secure viewing option for people interested in those jurisdictions.
Legistream uses our Python package legistream-backend to gather stream URLs and metadata from the parliament sites.
- We also plan to integrate Aus-Bills in some form in the future.
Setup
Install RabbitMQ
You can find instructions for different hosts here.
Poetry
Install poetry with pip:
```sh
pip3 install poetry
```
Install Dependencies
```sh
poetry update
```
Create secrets.py
In legistream_site/, make a file called secrets.py. Inside it, create these two constants:
ADMIN_PATH = 'your server admin path'
SECRET_KEY = 'your server secret key' # Look at the Django docs for more infoThe application will work if you just throw in random garbage, but do not leave ADMIN_PATH blank!
Set DEBUG = True
In legistream_site/settings.py change the line:
DEBUG = Falseto
DEBUG = TrueRunning Legistream
On first run:
poetry run python3 manage.py makemigrations legistreampoetry run python3 manage.py migrateClear pending tasks:
poetry run celery -A legistream_site purgeStart the Celery worker:
poetry run celery -A legistream_site worker -l info --pool=soloStart Celery Beat:
poetry run celery -A legistream_site beat -l infoTo run the server, use this command:
poetry run python3 manage.py runserver --insecureIf you get any errors, make sure you've set up your virtual environment correctly and that you've installed all the required dependencies.
You should now be able to access Legistream by going to localhost:8000 in your browser.
