Sunday, October 22, 2017

Django module - include dependencies

Hi, I'm building my own Django package to publish it to PyPI.

It has some JS dependencies. Some are mine, and some are external. What is the best way to include them?

I can keep the js files within the plugin. I think this is something that other django packages do, although it's not very clean, isn't it? Besides I need to check if these external files are already loaded by another package to avoid duplication.

A second choice would be to publish a npm package along with the python package, that handles the static files properly.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/80cc2418-ea89-4c62-9adc-5f677dccfeee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment