{% extends "base.html" %} {% load filters %} {% load i18n %} {% load compress %} {% block content %}

Paf'Py

Et Paf.

Ce « pastebin-like » s’utilise en ligne de commande, soit avec curl :

curl {{ request.build_absolute_uri }} -Fhello.py=@hello.py

Mais le mieux est de l'utiliser avec une fonction bash :

pafpy()
{
    curl {{request.build_absolute_uri}} -F"$1=@$1"
}
Demo :
$ pafpy test.py
{{request.build_absolute_uri}}D91F1CA
{% endblock %}