M
M
Maxim Yakovenko2019-10-01 20:50:38
JavaScript
Maxim Yakovenko, 2019-10-01 20:50:38

Is it possible to use one django library inside another?

There is a django_grapesjs library, which is essentially an adapter for the grapesjs client library. The grapesjs sources are now built into the django_grapesjs library. And in order to update them, you need to re-upload the entire client code. I would like to move away from this practice for a number of reasons, and replace it with the npm package manager.
To do this, I found another django application django_npm, which I think to embed in django_grapesjs.
I won’t list all the reasons for this decision, but I’ll name a couple: corny fast switching between versions of the library itself and managing a set of plug-ins for it.
Is such a solution even possible? I'm asking because I couldn't find an answer to this question quickly.
Thanks to everyone who responded :))))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2019-10-02
@tumbler

As for me, using django wrappers over js libs is a mockery of the frontend. They work well as long as the frontend is not needed, and as soon as tasks like the topikstarter arise, problems immediately begin. Because flies should be separate from cutlets.
On the topic, you need to look at the django_grapejs sources, perhaps there you can configure a link to the included library through local settings or through inheritance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question