Mercurial > personal > weather-server
comparison weather_server/server.py @ 8:d54155a199d8
Improve template; add stylesheet.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sun, 29 Sep 2019 20:32:48 -0400 |
parents | 368f732f13d0 |
children | 52ef21607b31 |
comparison
equal
deleted
inserted
replaced
7:4c25d5bb3534 | 8:d54155a199d8 |
---|---|
10 | 10 |
11 | 11 |
12 def build_app(root_directory: str) -> flask.Flask: | 12 def build_app(root_directory: str) -> flask.Flask: |
13 locs = locations.Locations(root_directory) | 13 locs = locations.Locations(root_directory) |
14 app = flask.Flask(__name__) | 14 app = flask.Flask(__name__) |
15 app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0 | |
15 | 16 |
16 @app.route('/favicon.ico') | 17 @app.route('/favicon.ico') |
17 def favicon(): | 18 def favicon(): |
18 return flask.send_file('static/favicon.ico') | 19 return flask.send_file('static/favicon.ico') |
19 | 20 |