Posts by Luis Marra • 7 points
4 posts
-
0
votes1
answer285
viewsQ: how to insert object_list inside the select of the form in the Django 2.1 template
how can I insert a list of my database into the select form? html template. <div class="form-group"> <label for="{{ form.id_departamento }}">Nome departamento</label> <select…
-
0
votes3
answers28
viewsA: Show url name on page
I was able to do so tbm, because I ran into another problem that when I have in the url after the bar, like crete_indicator/people using == my active did not work, so in this case I only check if…
-
-1
votes3
answers28
viewsA: Show url name on page
It worked that way {% if '/create_indicador/' == request.path %} <li class="active">....... {% else %} <li>........ {% endif %}
-
0
votes3
answers28
viewsQ: Show url name on page
someone knows if da to capture the name of the url on the page? type to want to make a condition to use class="active" example: {% if url 'create_indicador' %} <li class="active">....... {%…