Encode custom models to Django's JSONField
Problem Say you have a Class like this: class Device(): def __init__() ref = 333 name = "sweet one" things = { ... of things... } when = datetime.now() and then you want to serialise …
ARTICLES
Problem Say you have a Class like this: class Device(): def __init__() ref = 333 name = "sweet one" things = { ... of things... } when = datetime.now() and then you want to serialise …
While looking at Grafana Multi-Tenant arrangements, I realised it's problematic to have a multi-tenant SQL database accessed by Grafana. One solution is to use the X-GRAFANA-USER. If we can trust this header it will allow …
Finding a simple way to limit API users' permissions to certain objects. We want an API via Django, so we use DRF. We want object-level permissions so we use django-rules . There are other options …