from django.http import HttpRequest, HttpResponse from django.shortcuts import redirect from . import forms, templates def home_page(request: HttpRequest) -> HttpResponse: form = forms.SignUpForm(request.POST or None) if form.is_valid(): form.save() return redirect("profile") return templates.HomePage(form=form).render(request) import React from "react"; import {CSRFToken, Form, templates} from "@
{{#tags}}- {{label}}
{{/tags}}