本文介绍了pip:对javascript库的依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对其他python库的依赖关系可以通过pip的requirements.txt声明.

Dependencies to other python libraries can be declared by pip's requirements.txt.

但是可以声明对纯js库的依赖吗?

But is it possible to declare a dependency to a pure js library?

该库可从github获得.应该下载文件,使其可用于Django静态文件处理.

The library is available from github. The files should be downloaded an made available for django static file handling.

背景:建立自定义django应用程序的新开发环境应该很容易.

Background: setting up new development environments of a custom django application should be easy.

您如何在开发环境中处理此问题?

How do you handle this in your development environment?

推荐答案

Fanstatic已经创建了很多javascript程序包(jquery,bootstrap等)

Fanstatic already creates a lot of javascript packages (jquery, bootstrap, ...)

您可以在不使用fanstatic的情况下使用软件包...

You can use the packages without using fanstatic ...

http://www.fanstatic.org/en/latest/libraries.html

这篇关于pip:对javascript库的依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 14:06