I have an external URL containing JSON.
So my question is: How do I save the JSON data to my Django admin page if I created the following model that matches the Keys of the JSON?
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=254)
image_url = models.ImageField(blank=True)
title = models.CharField(max_length=254)
bio = models.CharField(max_length=20000)
vote = models.IntegerField()
My goal is to be able to create a voting app that lets you vote for each individual person defined by the JSON.
Here is the longer version of this question: https://stackoverflow.com/questions/46149309/create-object-models-from-external-json-link-django