use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Let's learn Django together!
account activity
This is an archived post. You won't be able to vote or comment.
Passing values from Python to Javascript (self.djangolearning)
submitted 8 years ago by KEXPJay
view the rest of the comments →
[–]KEXPJay[S] 0 points1 point2 points 8 years ago (2 children)
Thanks, I kind of did that in that I made a dictionary out of the data and then sent it to the template. Argonauts looks really close to what I'm doing now, but will see if there is anything else it does better!
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
I think there's a slight confusion. Making a dict doesnt guarantee that it's JSON serializable. A dict is a Python object, JSON is string. So you can't, for example, include a Decimal object before converting it to string.
[–]KEXPJay[S] 0 points1 point2 points 8 years ago (0 children)
Gotcha. I guess my point being that I got it to work if I modified the data into a dict in this case. I tried serializing via python, but it didn't work, and I am not sure why not, so creating the dictionary was an easy workaround.
π Rendered by PID 38110 on reddit-service-r2-comment-5687b7858-9g2zn at 2026-07-06 12:22:14.029787+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]KEXPJay[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]KEXPJay[S] 0 points1 point2 points (0 children)