Trim your URL

{% csrf_token %}
{% verbatim %}

Long url: {{longUrl}}

Short url: {{smradlavaUrl}}

{% endverbatim %}