I need to search for a student by name or cpf that is saved in the database and retrieve that same student in a form so that you can edit it and then be saving again. I'm using Django as a framework. I've already done an html by creating the search field
{% extends 'aluno/index4.html' %}
{% block content %}
<body>
<div class="col-lg-6">
<form class="input-group" action="." method="get">
<input type="text" name="pesquisar_por" class="form-control" placeholder="Pesquisar por...">
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">Pesquisar</button>
</span>
</form>
</div>
</body>
{% endblock %}
But I'm not sure how to integrate this with the view so that I'm rendering the form for editing. Can anyone give a help?