javascript image django static code example
Example 1: image in django
<html>
<head>
{% load staticfiles %} <!-- Prepare django to load static files -->
</head>
<body>
<img src={% static "image.jpg" %}>
</body>
</html>
Example 2: static file link in django
STATIC_URL = '/static/'