Author Topic: Include paramquery into django application  (Read 1823 times)

edasilv

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 13
    • View Profile
Include paramquery into django application
« on: October 12, 2021, 03:45:47 am »
{% load static %}
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>Django Girls</title>

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>

    <link href="https://unpkg.com/[email protected]/jquery-ui.css" rel="stylesheet" />
    <link href="https://unpkg.com/[email protected]/jquery-ui.structure.css" rel="stylesheet" />
    <link href="https://unpkg.com/[email protected]/jquery-ui.theme.css" rel="stylesheet" />
    <script src="https://unpkg.com/[email protected]/jquery-ui.js"></script>

    <link href="https://unpkg.com/[email protected]/pqgrid.min.css" rel="stylesheet" />
    <link href="https://unpkg.com/[email protected]/pqgrid.ui.min.css" rel="stylesheet" />
    <link href="https://unpkg.com/[email protected]/themes/steelblue/pqgrid.css" rel="stylesheet" />
    <script src="https://unpkg.com/[email protected]/pqgrid.min.js"></script>
    <script src="https://unpkg.com/[email protected]/localize/pq-localize-en.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>

    <script src="https://unpkg.com/[email protected]/dist/FileSaver.min.js"></script>
    <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'css/blog.css' %}">
</head>

<body>
    <div class="page-header">
        <h1><a href="/">Analysis Result</a></h1>
    </div>
    <div class="content">
        <div class="row">
            <div class="col">
                <div id="grid_json" style="margin:100px;"></div>
                {% block content %}
                {% endblock %}
            </div>
        </div>
    </div>
</body>

</html>

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Include paramquery into django application
« Reply #1 on: October 13, 2021, 06:44:55 pm »
Please Check your browser developer console and look out for errors.

edasilv

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Include paramquery into django application
« Reply #2 on: October 21, 2021, 09:16:38 am »
it shows no error

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Include paramquery into django application
« Reply #3 on: October 21, 2021, 09:27:07 am »
Where is the code to create / initialize the grid?

Please follow this topic on how to create your first grid: https://paramquery.com/pro/tutorial#topic-firstjquerygrid
« Last Edit: October 21, 2021, 09:29:22 am by paramvir »

edasilv

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Include paramquery into django application
« Reply #4 on: October 22, 2021, 01:58:10 am »
Thank you for your answer!
After your question about grid initialization, I realized that the js file with the grid initialization was not linked to the correct file.