N
N
NotProblem2018-07-21 16:28:25
PostgreSQL
NotProblem, 2018-07-21 16:28:25

How to store data in DB about Bootstrap grid?

Good day everyone!
Tell me, has anyone faced such a task:
The user in the admin panel (not django, custom) must create a dashboard (something like a workspace), inside which you need to store data in each cell according to the grid, so you must first create a bootstrap grid (store data rows and columns) and further to each cell to support data such as graphs, widgets, etc.
I can not understand how to organize the storage of this data in the database, how should the data be structured?
Maybe there is a similar package?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mc21, 2018-07-21
@alexbog80

We simply store the number of columns for each block as a number. In the admin panel, it looks like a drop-down from 1 to 12.
True, not a bootstrap, but the essence is the same.
For lines checkbox "line break after block" as yes/no.

V
Vadim Shatalov, 2018-07-23
@netpastor

https://github.com/jazzband/django-dbtemplates ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question