0
I need to search a student by name or Cpf that is saved in the database and recover this same student in a form to be able to edit it and later be saving again. I am using Django as a framework. I have already made an html 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 %}
However I am not able to integrate this with the view so I can render the form for editing. Someone can give a help?