有没有办法将 processing.py 或 processing.js 作为 Python 模块导入 Django web 开发?

Is there a way to import processing.py or processing.js as Python module for Django web development?

我正在尝试使用 Python Django 上的处理来开发交互式 Web 内容。但是我找不到任何 material 显示如何导入 processing.py 或 processing.js 作为 Django 开发的 python 模块。

我认为您想在 html 模板中包含 processing.js ...这与 python 或任何其他语言无关,只是关于如何包含脚本html

中的 src 标签
<html>
<head>

<!-- Include processing complete js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.min.js"></script>


</head>
<body>
<h4>Hello World!</h4>
<script>
  // do some processing.js stuff here ...
</script>
</body>
</html>

processing.py用于在python中渲染桌面处理程序(使用pygame或者可能只是OpenGL)...如果你想要web你需要js ...