I have a small application that has been working fine till I switched
computers to a windows 8.1 system, I also downloaded the latest version of
Web2py on my local machine. The problem is that the views which use
'response.json' are not rendered at all on my machine, instead the pages
show only the raw HTML code, without any errors from web2py. The weird
thing is that the exact same application I have on a webserver
(pythonanywhere) runs just fine, so I know its not my browser. Here below
is a snippet of the code I have in the view that is giving me problems:
<script type="text/javascript" language="javascript">
var news_feed = {{=XML(response.json(feed))}};
</script>
'feed' is a variable that is being passed from the controller. I know the
problem is being produced with 'response.json' because all the other code
in all my other views work fine if 'response.json' is not being used. Also,
comparing the html code from the webserver (which renders fine) with the
html code generated from my local machine (which does not render) , I see
absolutely no difference.
Is it my new machine, windows 8.1, new version of web2py ??
Please Help!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.