X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c742d70c5285e01898721fc1a5ffe236781c7828..f3e8dfa015744bd72796fdd8eff0d81f863cdc46:/src/sponsors/views.py diff --git a/src/sponsors/views.py b/src/sponsors/views.py deleted file mode 100644 index 9a340895c..000000000 --- a/src/sponsors/views.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. -# -from django.http import HttpResponse -from ssify import ssi_included -from .models import SponsorPage - - -@ssi_included(use_lang=False) -def page(request, name): - try: - page = SponsorPage.objects.get(name=name) - except SponsorPage.DoesNotExist: - return HttpResponse(u'') - return HttpResponse(page.html)