Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Where do I start with writing a script that takes a json file and saves them to an SQLite database?

I'm working on the Python Techdegree project 6 and I've been stuck for a few days. The project is almost complete but I cannot yet figure how to load a json data file onto the database. there is an integrated method of doing this in django with fixtures, but this project seems to just ignore that. I've seen how several other students have done it and I haven't a clue how they got to that end.

The prompt I'm stuck on is thus: Write a script to that constructs a mineral model instance for each mineral in minerals.json and saves them to a SQLite database.

I've been trying everything can find and think of and after 8 hours I have nothing to show for it. Any indication of where to start or anything at all would be great for my sanity.