Achim Domma on Nostr: Using #Django I would like to upload a Json file and create database entries from it. ...
Using #Django I would like to upload a Json file and create database entries from it. So basically an import of structured data into my data model.
Is it possible to integrate that into the Django admin UI? Just an additional page with an upload form? Like "Create model X from this file"?
The admin UI is quite nice, powerful and flexible, but I could not figure out how to do that. So I assume I'm missing something obvious?!
Published at
2024-08-16 07:30:12Event JSON
{
"id": "917b72fc9282e6034ad36cf0ed01adbedb22e447083ad32fb937572bcc37afca",
"pubkey": "0a26e9db102821e5d956b287af9ca66537bd1bf5d9fd652d72c4d252f37a5391",
"created_at": 1723793412,
"kind": 1,
"tags": [
[
"t",
"django"
],
[
"proxy",
"https://social.saarland/users/achim/statuses/112970525097250369",
"activitypub"
]
],
"content": "Using #Django I would like to upload a Json file and create database entries from it. So basically an import of structured data into my data model.\n\nIs it possible to integrate that into the Django admin UI? Just an additional page with an upload form? Like \"Create model X from this file\"?\n\nThe admin UI is quite nice, powerful and flexible, but I could not figure out how to do that. So I assume I'm missing something obvious?!",
"sig": "479905589801b34221d76941b490d6b16357115f0f5dacd5f1a43e08ae6bfa00105743b67678f81c1b14950bcc4ed7db9042a6839c6aee453ee7e25585c921af"
}