Guys i know there are lot of answers for this but it couldn't work for me.i tried to specify the url in the init of the app but still couldn't work for me.Am i missing something? I am trying to change the background to an image
here is my directory
└── wine
├── __init__.py
├── __init__.pyc
├── __pycache__
│ ├── __init__.cpython-37.pyc
│ ├── models.cpython-37.pyc
│ └── routes.cpython-37.pyc
├── models.py
├── routes.py
├── site.db
├── static
│ ├── bg.jpeg
│ ├── main.css
│ ├── pexels-photo-935240.jpeg
│ ├── pexels-photo.jpg
│ └── sf.jpg
└── templates
├── index.html
└── rec.html
here is my html file i installed materialize for flask.
{% extends "material/base.html" %}
{% import "material/wtf.html" as wtf %}
<head>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
{% block title %}
Welcome
{% endblock %}
</head>
{% block content %}
<div class="container">
<h1>Whats Your Taste</h1>
<div class="row">
<form method="POST" action="/">
{{ wtf.quick_form(form)}}
</form>
</div>
</div>
{% endblock %}
my css 'main.css'
body{
background-image: url({{ url_for ('static', filename = 'bg.jpeg') }});
}