Hostnames are composed of series of labels concatenated with dots, as are all domain names. For example, "en.wikipedia.org" is a hostname. Each label must be between 1 and 63 characters long, and the entire hostname (including the delimiting dots but not a trailing dot) has a maximum of 253 ASCII characters.
The Internet standards for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-'). The original specification of hostnames in RFC 952, mandated that labels could not start with a digit or with a hyphen, and must not end with a hyphen. However, a subsequent specification (RFC 1123) permitted hostname labels to start with digits. No other symbols, punctuation characters, or white space are permitted.
├───static
│ ├───css
│ │ style.css
│ │
│ └───js
│ script.js
│
├───templates
│ hello.html
│
│ app.py
<script src="/static/js/script.js"></script>
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "hello world"
if __name__ == '__main__':
app.run()
{{ post1.body|safe }}
python -m pip install -U pip
class Session_cinema(db.Model):
film_id = db.Column(db.Integer(), db.ForeignKey('film.id'))
...
film = relationship('Film')
<td>{{ item.film.name }}</td>
@app.route('/session/list', methods=['GET', 'POST'])
def session_list():
return render_template('session_list.html', items=Session_cinema.query.all())
<!doctype html>
<html>
<body>
<table>
<tr>
<th>Дата</th>
<th>Время</th>
<th>Зал</th>
<th>Цена</th>
</tr>
{% for item in items %}
<tr>
<td>{{ item.date }}</td>
<td>{{ item.time }}</td>
<td>{{ item.hall }}</td>
<td>{{ item.price }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>