skip to Main Content

Parsing nested json list

I have a nested json response from a vendors API. { "data":{ "id":"hidden", "type":"file_import", "attributes":{ "id":"hidden", "type":"Academics API", "dry_run":false, "status":"completed", "import_started_at":"2023-09-05T15:13:59.159Z", "import_completed_at":"2023-09-05T15:14:11.581Z", "result":{ "info":{ "terms":[], "teachers":{ "created":{ "total":0, "list":[] }, "updated":{ "total":0, "list":[ ] } }, "courses":{ "created":{ "total":0, "list":[]…

VIEW QUESTION

Visual Studio Code – Messy output and terminal in VScode

I've been experiencing a whole of clutter in the terminal when I run programs in Python. Example: PS C:UsersdanheAppDataRoamingCode> & C:/Users/danhe/AppData/Local/Microsoft/WindowsApps/python3.11.exe "c:/Users/danhe/OneDrive/Desktop/Python projects/22222222.py" Hello, world PS C:UsersdanheAppDataRoamingCode> I tried using code runner to display the output but get a similar…

VIEW QUESTION

i want two pass two context in index.html file

my views.py from django.shortcuts import render, HttpResponse,redirect from .models import * # Create your views here. def index(request): products=Product.objects.all() params={'product':products} categories=Category.objects.all() category={'category':categories} return render(request,'index.html',params,category) i am creating an ecommerce website on django and i want to pass two context in…

VIEW QUESTION
Back To Top
Search