How to create a Tracking Click Rest endpoint in Django

I found django-clickify but had some issues for my needs and after doing a PR I said, well it’s the case to implement on my own for Django Rest Framework. Explanation A url example: http://localhost:8000/track/?slug=CheckoutClick&id=23&value=notmandatory The value field is not mandatory, the slug is checked against the list in the view. For any request, it […]

Read More…

My free software and open source activities of April 2025

Questo articolo è stato scritto oltre 1 years, il contenuto potrebbe essere datato.What has happened this month? In the meantime, to read the previous report, go here. Projects CodeAtCode/paypal-subscription-lib 0.1.2 – 2025/04/15 https://daniele.tech/2025/04/how-to-center-the-mouse-between-monitors-in-wayland/ Wedding Yes I am getting married in June so it is a busy period. […]

Read More…

My free software and open source activities of October 2023

Questo articolo è stato scritto oltre 1 years, il contenuto potrebbe essere datato.What has happened this month? In the meantime, to read the previous report, go here. My projects https://github.com/Mte90/GH-License/releases/tag/0.3.0 https://daniele.tech/2023/10/how-to-redirect-wordpress-images-to-a-different-domain/ https://daniele.tech/2023/10/django-packages-that-you-cant-live-without-from-reddit/ Italian Linux Society Introduced https://forum.linux.it/t/locandina-quando-cucino/1083/ and organized the new Linux Day (we are uploading the video online). […]

Read More…

How to do a Django cache decorator that exclude by URL parameters

Questo articolo è stato scritto oltre 1 years, il contenuto potrebbe essere datato.After asking on Reddit, I started digging on internet looking other projects with custom cache decorator and mixing various I was able to achieve this. “””Custom cache decorator.””” from django.http import HttpResponse from django.views.decorators.cache import cache_page as original_cache_page from datetime import datetime from […]

Read More…