use render instead of render_to_response

from django.shortcuts import render


 return render(request, 'blog/calc.html', {
        'a' :a,
        })


2016-02-21 22:57 GMT-06:00 Xristos Xristoou <saxr...@gmail.com>:

> UserWarning: A {% csrf_token %} was used in a template, but the context
> did not provide the value.  This is usually caused by not using
> RequestContext.
>
> Τη Τρίτη, 9 Φεβρουαρίου 2016 - 9:47:30 μ.μ. UTC+2, ο χρήστης Xristos
> Xristoou έγραψε:
>>
>> hello,
>>
>>
>> i create some python mathematical function on python idle,
>> i want to create website where the user import value numbers on the
>> function
>> and take the results from that.
>> question one,how to connect my mathematical function on the django?
>> question two,how to connect input and output from the scipts in the
>> website ?
>> the second question i ask because input and output from the function is a
>> dynamic define from the user
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bb2f0706-390a-4164-aad8-6c2777df68f0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bb2f0706-390a-4164-aad8-6c2777df68f0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyMHkEpM44AQqLa_Ho1%3D6ZeXk%2B_DTRtPQf54db3aE3XmWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to