Answer the question
In order to leave comments, you need to log in
Image path without adding static?
Django jinja template engine.
There is an application like this:
jinjalesson
/migrations
/static
/jinjalesson
/css
/img
/js
/templates
/jinjalesson
/wpapper.html
/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,intial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
{% load staticfiles %}
<link rel="stylesheet" href="{% static 'jinjalesson/css/style.css' %}" type="text/css">
<title>Title</title>
</head>
<body >
{% block content %}
{% endblock %}
</body>
<script src="{% static "jinjalesson/js/jquery.viewportchecker.min.js" %}"></script>
<script src="{% static "jinjalessonjs/main.js" %}"></script>
</html>
{% block content %}
<body>
<img src="img/1014_web.png" alt="" class="lang_img">
</body>
{% endblock %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question