I'm having troubles to get this thing work. Basically i have my raspberry, with apache and django running good, in my views i can turn on and off a led using gpiozero, i can do pretty much every output thing i want with gpio pins.
But there is this thing i can't do: How to get input from gpio pins?
I tried setting up Celery but there are 2 problems, i can't make it work how i want (after 3 days of tests looking 10 different guides, even official ones) and it doesn't do exactly what i want. Celery can do background process only when they are called in a django view.
What i want to do is having a background process that run 24/24 that watch pin input activity. Simple example: When the button connected on gpio 23 is pressed, change a value in a django model or turn on another gpio pin.
Someone with a hint? Thanks all!