In this article, we will show you how you can use Storyblok using Python, Django, and Jinja2. At the end of this article, you will have a Python application which renders components filled with data from Storyblok.
During this article, for example, we will use following JSON which comes from the Storyblok API to render our first story:
$ curl https://api.storyblok.com/v1/cdn/stories/home?token=akYA0RB4BzCPUoRfjIvUdQtt
"headline": "Easy - isn't it?"
1. Install the Storyblok CLI
npm install storyblok -g
2. Bootstrap your python project
We’re going to use the framework Django for this example as many the python developers are already familiar with this - if you’re not - we’re only using some basics of it - you can of course also have a look at the Django documentation.
You will be asked few questions - you can answer them like we did in the screenshot below.