diff options
Diffstat (limited to 'python/www/views.py')
-rw-r--r-- | python/www/views.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/python/www/views.py b/python/www/views.py deleted file mode 100644 index 9a1ace4..0000000 --- a/python/www/views.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 1998-2019 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -from django.http import HttpResponse -from django.shortcuts import render -from django.conf import settings - -from .utils import default_siteinfo -from .models import Posts, Sponsors - -def index(request): - menyrequest = 'www' - siteinfo = default_siteinfo(request, menyrequest) - siteinfo['posts'] = Posts.objects.all()[:2] - siteinfo['class_include'] = 'hero-section emergehdr' - #siteinfo['EM'] = EbuildsMetadata.objects.filter(uuid__deleted = False).order_by('-uuid__created_at')[:10] - #siteinfo['BL'] = BuildLogs.objects.order_by('-created_at')[:10] - htmlrequest = 'pages/' + menyrequest + '/index.html' - return render(request, htmlrequest, siteinfo) |