I think I found this a while ago but right now I don't seem to find anything when googleing.
I have a model Location
:
class Location(models.Model):
name = models.CharField(max_length=200)
image = models.ImageField(blank=true);
and a JSON file mydata.json
that will load initial data:
[
{
"model": "locations.location",
"fields": {
"name": "Cafe"
}
}
]
and then when I do python manage.py loaddata mydata
it loads the data. So now I am wondering if it's possible to load in a picture as well generated from the json. I don't mean just a link like here I mean a format that generates an image after. I think I read somewhere that it is possible I just can't find it anymore.
Anyone an idea?