In other words, yet another micro-blogging app! This one powers pdc.ooble.uk.
Stack:
- Django 3.2
- Celery 4.4
- Python 3.8
Use Poetry:
poetry run -- ./manage.py test
poetry run -- celery -A linotak.celery worker --loglevel=info
poetry run -- ./manage.py runserver 0:8004
Or use poetry shell
to avoid typing poetry run
all the time.
Try this
URL=https://foo.example.com/bar
FILE=samples/foobar.html
curl $URL > $FILE
poetry run -- ./manage.py linotakscan --base=$URL $FILE
Freshen the extracted translation files with
poetry run -- django-admin makemessages -l eo
Upload .po
files to <POEditor.com> and download and then run
poetry run -- django-admin compilemessages
Edit the following URL
javascript:location.href='https://pdc.ooble.uk/new?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)
rabbitmqctl enable_feature_flag all
rabbitmqctl add_user linotak correct-horse-battery-staple
rabbitmqctl add_vhost linotak
rabbitmqctl set_permissions -p linotak linotak ".*" ".*" ".*"
echo CELERY_BROKER_URL=amqp://linotak:correct-horse-battery-staple@localhost/linotak >> .env