Skip to content
Advertisement

Tag: django

How do I sort the movies according to their star ratings and filter the movies with lower rating than the specified threshold

I want to sort the movies according to their star ratings and filter the movies with lower rating than the specified threshold. I want to sort movie and TV information in descending order by stars, search by each ID, and display data.json format and socre. However, I get a’module’ object does not support item assignment error. context [“movie”] = in

JSON POST and GET 404 (Not Found)

I am trying to create an API in Django but am receiving the following errors message in the JavaScript console. Does anyone know how to fix this problem? API url: path(“edit/<int:post_id>”, views.edit, name=”edit”) views.py JavaScript HTML I think something might be wrong in the way I am passing in the id to the API, but I am not sure. Could

Change object label on specific value in js

I’m working on charts in React.js and i want to display data sorted by month. In django i’ve created view for displaying json with total events per month and it looks like this: I would like to sort every object in that array and change value ‘month’ from numbers to month name, so it would be: For generating charts i’m

Advertisement