Using forms with the Django outputs the token
<p>I would really appreciate if you can give a hand with this.
What I'm trying to do it's just to render the value of some text label, but it gives me the token.</p>

<p>I'm learning django I hope you can comprehend.</p>

<p>The result of this is:</p>

<p><strong>eee 12121 csrfmiddlewaretoken yYvl3neQZSP33vSRNto3FUFa88AMeFQi</strong></p>

<p>view.</p>

<pre><code>def test(request):
    if request.method == "POST":
        response = ''
        for key, value in request.POST.items():
            response += '%s %s\n' % (key, value)

        return HttpResponse(response) 

    return render(request, 'datos2.html')
</code></pre>

<p>datos2.</p>

<pre><code>&lt;form action="/test" method="post"&gt; {% csrf_token %}
&lt;input type="text" name="eee"&gt;
&lt;input type="submit"&gt;
&lt;/form&gt;


&lt;p&gt;ADD VALUE&lt;/p&gt;

&lt;button onclick="myFunction()"&gt;ADD&lt;/button&gt;

&lt;script&gt;
function myFunction() {
    var x = document.createElement("INPUT");
    x.setAttribute("type", "text");
    x.setAttribute("value", "0");
    x.setAttribute("name", "eee");
    document.body.appendChild(x);
}
&lt;/script&gt;
</code></pre>

<p><a href="http://i.stack.imgur.com/qx75Z.png" rel="nofollow"><img src="http://i.stack.imgur.com/qx75Z.png" alt="enter image description here"></a></p>

<hr>

<p><a href="http://i.stack.imgur.com/uqMv3.png" rel="nofollow"><img src="http://i.stack.imgur.com/uqMv3.png" alt="enter image description here"></a></p>

<p>You are looping over all the elements in the POST array in this snippet of code</p>

<pre><code>for key, value in request.POST.items():
    response += '%s %s\n' % (key, value)
</code></pre>

<p>I believe, if i understand your question, that what you are after is simply <code>request.POST.get('eee')</code></p>

python django token csrf