{% extends "base.html" %}{% load filters %} {% load i18n %} {% load compress %} {% block title %}{% trans 'Paste something' %}{% endblock %} {% block content %}
curl {{ request.build_absolute_uri }} -Fpython=@hello.py
Le nom, entre -F et = sert à choisir la coloration syntaxique.
Le mieux est de l'utiliser avec une fonction bash :
pafpy()
{
curl {{request.build_absolute_uri}} -F"${1##*.}=@$1"
}
$ pafpy test.py
{{request.build_absolute_uri}}D91F1CA