La valeur par défaut nécessite 2 arguments, 1 fourni

You have an extra space which causes the error.

value="{{ form.username.value|default_if_none: '' }}"

should be
value="{{ form.username.value|default_if_none:'' }}"
BlueMoon