hey friends,
for some time now i have been working on implementing ipython notebook to
sympy_gamma.the main problem of ipython's json format is solved but i have
problem in using django!! please suggest!
I am using the 'r' variable from the views.input view and rendering json
after parsing it to another url after the user click on the notebook's link
which then redirect to nbviewer
But as both views.input and json creator are both different views i am
having difficulty passing the variable between them. i have passed the
result from the result.html template using
<a href="{% url app.views.json_creator %}?result={{
result|safe }}">
to json_creator. it is working ( to some extend) but it is getting passed
in some weird format...this dictionary which is getting passed is full of
"%<some number>" and "\\" something like mathjax when the view is
receiving. and thus my view is not able to parse it because it is not a
python dictionary anymore..it will be nice if some django developer could
suggest somethings.
besides using GET request i know that i can create an invisible form and
get the 'r' from POST or i can use app engine datastore..
with datastore it is very easy but storing and deleting datastore is not
free on app engine so i am preferring GET method else..
Furthermore, i know that maximum length if url is somewhere around 2000
characters but i dont think that json could be larger than that so thats
why i think this method is appropriate..
Thanks.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.