Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

JavaScript In Python

{% 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
Comment

how to use js in python

# It's really simple, create a file and name it 'console.py'
# Now type this in it

def log(text):
  print(txt)

# create new file named 'js.py', Now type

import console

console.log("Hello World!")
Comment

PREVIOUS NEXT
Code Example
Python :: extract tables from image python 
Python :: split x and y pandas 
Python :: pyqt global hotkey 
Python :: faceModel = "opencv_face_detector_uint8.pb" 
Python :: merge sort dictionary python 
Python :: Example of importing module in python 
Python :: tree view width 
Python :: python replace every space, dash and parentheses into underscore 
Python :: 0xff in python 
Python :: which can be reversed , string or list? 
Python :: drop columns delta table 
Python :: python typing optional argument 
Python :: How to srape all links from a website in python 
Python :: Python NumPy atleast_1d Function Syntax 
Python :: in django drowpdown list shown in database tables 
Python :: how to extract a list of values from numpy array using index list 
Python :: Python NumPy asarray_chkfinite Function Example List to an array 
Python :: advanced python code copy and paste 
Python :: fpdf latin-1 
Python :: Python __ne__ 
Python :: NumPy rot90 Example Rotating four times 
Python :: visualize 3 columns of pandas 
Python :: ROS subscribes to image type video frames (Python) through topic Publishing 
Python :: cast set 
Python :: Remove Brackets from List Using join method with loop 
Python :: manager.dict() append 
Python :: send by email in odoo 14 
Python :: seaborn colorbar labelsize 
Python :: Flask_SQLAlchemy is claiming my value is not boolean 
Python :: cours python 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =