Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #JavaScript #In #Python
ADD COMMENT
Topic
Name
1+2 =