I create a page where css works on every page except the page that is saved in the main.py file like this
@app.route('/sendKontakt/<nm>/<em>/<tx>', methods=['GET', 'POST'])
def sendKontakt(nm, em, tx):
return render_template('kontaktSucces.html', imie=nm, emile=em, wiadomosc=tx.replace("_", " "))
CSS doesn't work because url has <>.
The html code of this page looks like this:
{% extends 'base.html' %}
{% block title %}| Kontakt{% endblock %}
{% block content %}
<h1>Dziękujemy za kontakt!</h1>
<p>Imię: {{imie}}</p>
<p>Emile: {{emile}}</p>
<p>Wiadomosc: {{wiadomosc}}</p>
{% endblock %}
In base.html file header looks like
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="static\css\style.css" type="text/css">
<link rel = "icon" href = "static/img/smallicon.png" type = "image/x-icon">
<title>{% block title %}{% endblock %}</title>
</head>
I apologize for not English words but they shouldn't get in the way of solving this problem. Anyone know how to get css styles to work? I will probably not be able to write back for a few hours. Regards Kuba