Simple content import script for Django / Wagtail

Feb. 22, 2016

I wanted to import some bookmarks, so I wrote a little script

I've been collating links as part of my reading list for the last few months. Occasionally I like to look back through them to find something particularly interesting. However, I've got so many now that finding individual ones has become difficult.

So! I created a Bookmark snippet in Wagtail, then wrote a quick python script to import the bookmarks from a CSV file. It took about 30 minutes in all. The hardest part was working out that I needed to initialise Django by setting the DJANGO_SETTINGS_MODULE environment variable.

By the way, you can now follow my reading list here!