Serve images from a separate direcory configured in an external config

file (config.py)
This commit is contained in:
Michael Mandl 2018-11-03 13:21:26 +01:00
parent d45d1347bd
commit f0fb5f0d9f
4 changed files with 11 additions and 1 deletions

View file

@ -2,5 +2,6 @@
<body>
<p>Hello slider number {{ num }}!</p>
<p><img src="{{ url_for("static", filename="cat.jpg") }}"></p>
<p><a href="{{ url_for("image", filename="IMG_0001.jpg") }}">Image</a></p>
</body>
</html>