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 SponsorPage
10 @ssi_included(use_lang=False)
11 def page(request, name):
13 page = SponsorPage.objects.get(name=name)
14 except SponsorPage.DoesNotExist:
15 return HttpResponse(u'')
16 return HttpResponse(page.html)