blob: bb8b565e55e2b1e1167f4baffc3b2e144e543816 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from django.core.handlers.wsgi import WSGIRequest
from django.http import HttpResponse
from django.shortcuts import render
from django.views import View
from pydis_site.apps.guides.utils import get_categories, get_guides
class GuidesView(View):
"""Shows all guides and categories."""
def get(self, request: WSGIRequest) -> HttpResponse:
"""Shows all guides and categories."""
return render(request, "guides/guides.html", {"guides": get_guides(), "categories": get_categories()})
|