This ```script``` tag is not going to be inserted as it is outside any ```{% block %}```. I would move it inside the ```head``` django template block