# PIP INSTALL JS2PY
import js2py
code_2 = "function f(x) {return x+x;}"
res_2 = js2py.eval_js(code_2)
print(res_2(5))
{% load static %}
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
<script src="{% static 'javascripts/test.js' %}"> </script>
</head>
<body>second second
<div class="container">
this now works
<img src="{% static 'images/myimage.jpg' %}"/>
<button onclick="test()"> Test </button>
</div>
</html>
#pretty much the same thing as images and stylesheets
avaScript vs Python — About the languages
JavaScript is a scripting language. ... Python, on the other hand, is an object-oriented programming language. This is the kind of coding language that allows programmers to build apps and websites using objects that are nothing but virtual building blocks.