1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.http import HttpResponse
6 from ssify import ssi_included
7 from .models import Chunk
10 def chunk(request, key):
11 chunk, created = Chunk.objects.get_or_create(key=key)
12 return HttpResponse(chunk.content)