(self, request)
| 759 | template_name = "index.html" |
| 760 | |
| 761 | def get(self, request): |
| 762 | request_query = request.GET |
| 763 | context = { |
| 764 | "vulnerability_search_form": VulnerabilitySearchForm(request_query), |
| 765 | "package_search_form": PackageSearchForm(request_query), |
| 766 | "release_url": f"https://github.com/aboutcode-org/vulnerablecode/releases/tag/v{VULNERABLECODE_VERSION}", |
| 767 | } |
| 768 | return render(request=request, template_name=self.template_name, context=context) |
| 769 | |
| 770 | |
| 771 | class HomePageV2(VulnerableCodeView): |