Monthly Shaarli

All links of one month in a single page.

April, 2021

Fluent in Django: 8 Django template tags you should know

Quelques bonnes idées ;-)

What is GraphQL? | GraphQL Tutorial

A lire. Pour quand on en aura assez de REST.

Django-reversion-compare

Django-reversion est déjà excellent pour historiser des modifications sur certaines classes.
Django-reversion-compare ajoute une partie d'administration et de visualisation, pour afficher ergonomiquement les différences entre deux instances sauvegardées.

Saved dashboards — django-sql-dashboard 0.8a2 documentation

L’idée est cool: cela permet de sauver des requêtes utilisateurs et de les ré exécuter par la suite.
Visiblement, cela va un peu plus loin, mais je n’ai pas tout parcouru.

Labels · minstyle.io

Encore une lib CSS qui a l’air sympa

Mustard UI · A CSS framework that actually looks good.

Mustard UI is a complete CSS framework that is production ready out of the box. There is no need to customize the CSS if you don’t want to because it is head and shoulders above others in terms of the way that it looks. We think it looks great and hope you do too.

Un repo Gentoo pour les films https://lord.re/ideas/011-un-repo-gentoo-pour-les-films/

Comme j’aime l’idée ... 😍

GitHub - jongracecox/anybadge: A Python project for generating badges for your projects, with a focus on simplicity and flexibility.

L’idée qu’elle est bien 🙂

Ubuntu 21.04 Released, Available to Download https://www.omgubuntu.co.uk/2021/04/its-here-ubuntu-21-04-is-now-available-to-download

Bon, va falloir essayer tout ça.

Time Machine

La super idée pour faciliter les tests unitaires qui traitent des dates <3

Cela m'évitera peut-être de passer une paramètre date par défaut :-p

import datetime as dt
from zoneinfo import ZoneInfo
import time_machine

hill_valley_tz = ZoneInfo("America/Los_Angeles")

@time_machine.travel(dt.datetime(1985, 10, 26, 1, 24, tzinfo=hill_valley_tz))
def test_delorean():
    assert dt.date.today().isoformat() == "1985-10-26"