K
K
Kirill Gorelov2019-02-24 18:52:05
Django
Kirill Gorelov, 2019-02-24 18:52:05

Django theoretical question?

Guys, hello.
Tell me who has already done this or who knows how to do this, I will be glad to help.
What is the point. Suppose I made a django application about the weather and the dollar exchange rate, all this is conditional.
Further, I thought and decided to make "widgets" for these applications. An example of how it is done with Yandex. Widgets can be enabled in the settings.
5c72bbe6066b4978701302.png
Yandex is an example, many systems have such widgets, such as Bitrix, Shopscript and various crm systems, just Yandex is known to everyone.
And actually, how to do this, how to make it so that these widgets can be connected in different places of the entire project, how to organize the structure, how to make these widgets be connected by different users with different settings?
There are many questions, few answers.
I imagine it like this. Have a specific application make a folder that will contain the classes of these widgets. Display templates put in the same folder. And if you need to process requests to the widget itself, then use DRF.
But that's all, but I don't know how to connect, how to make different users connect them, how to store it all in the database.
I do not ask you to do it for me, but I ask you to tell me where to dig

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-02-24
@LazyTalent

https://docs.djangoproject.com/en/2.1/howto/custom...

S
sim3x, 2019-02-24
@sim3x

Django: How to inject data from the database into each page (a la @inject in Laravel)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question