Skip to content

views

main.views

Views for the main app.

Classes

HelpView

Bases: View

View that renders the help page.

Functions
get(request)

Render the help page.

Source code in main/views.py
def get(self, request: HttpRequest) -> HttpResponse:
    """Render the help page."""
    return render(request=request, template_name="main/help.html")

Functions

index(request)

View that renders the index/home page.

Source code in main/views.py
@login_required
def index(request: HttpRequest) -> HttpResponse:
    """View that renders the index/home page."""
    return render(request=request, template_name="main/index.html")