Simple content import script for Django / Wagtail

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

Feb. 22, 2016

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!

wagtail python django