Show specific data of a Postgresql Database in HTML

0

I hope you can help me, as part of my project in Django, I must show specific data of my table which is in BD Postgresql, but I do not know how to do it and the truth is that with the Tutorials I get too involved. My code is as follows: base.Html:                   {% block container%}               {% block title%} General Warehouse {% endblock%}

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {% load static %}

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="{% static 'boostrap/css/bootstrap.css' %}">
  </head>
  {% endblock container %}
  {% block navegacion %}

<marquee bgcolor="#006699" behavior="alternate" direction="right">
    <b><font color="#FFFFCC" size="5"><h1>Almacen General</h1></font></b>
  </marquee>


            <style type="text/css">

                * {
                    margin:0px;
                    padding:0px;
                }

                #header {
                    margin:auto;
                    width:500px;
                    font-family:Arial, Helvetica, sans-serif;
                }

                ul, ol {
                    list-style:none;
                }

                .nav > li {
                    float:left;
                }

                .nav li a {
                    background-color:#000;
                    color:#fff;
                    text-decoration:none;
                    padding:10px 12px;
                    display:block;
                }

                .nav li a:hover {
                    background-color:#434343;
                }

                .nav li ul {
                    display:none;
                    position:absolute;
                    min-width:140px;
                }

                .nav li:hover > ul {
                    display:block;
                }

                .nav li ul li {
                    position:relative;
                }

                .nav li ul li ul {
                    right:-140px;
                    top:0px;
                }
            </style>

        <body>
            <div id="header">
                <ul class="nav">
                    <li><a href="{% url 'almacenprincipal:indice' %}">Inicio</a></li>
                    <li><a href="">Almacen Principal</a>
                        <ul>
                            <li><a href="">Articulos</a>
                                <ul>
                                   <li><a href="{% url 'almacenprincipal:agregar_listadoarticulos' %}">Agregar articulo</a></li>
                                   <li><a href="">Listado Articulos</a></li>
                                </ul>
                            </li>
                            <li><a href="">Personal</a>
                                <ul>
                                    <li><a href="{% url 'almacenprincipal:agregar_datospersonal' %}">Agregar personal</a>
                                    <li><a href="">Listado Personal</a></li>                                        
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li><a href="">Almacenes</a>
                        <ul>
                            <li><a href="">Almacen Ventas</a></li>                                
                            <li><a href="">Almacen Proveeduria</a></li>
                            <li><a href="">Almacen Donacion</a></li>
                        </ul>
                    </li>
                    <li><div class= "collapse navbar-collapse" id= "navbarNav" > 
                        <ul class= "navbar-nav" ></ul>
                        </div><a href="">Galeria de Articulos</a></li>
                </ul>
            </div>
        </body>

  {% endblock %}

The idea is that when you select Warehouse, this only brings me all the items that meet that condition: For example, when I select store sales, this one brings me all the articles that correspond with that classification.

I do not know if you can help me with this information.

    
asked by Jhonny Barreto 27.09.2018 в 16:20
source

0 answers