cache busting
This commit is contained in:
parent
d78e483ad2
commit
48bb2ea42f
1
Pipfile
1
Pipfile
|
|
@ -13,6 +13,7 @@ flask-login = "*"
|
|||
flask-bcrypt = "*"
|
||||
flask-migrate = "*"
|
||||
flask-wtf = "*"
|
||||
flask-static-digest = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.7"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "01573cf64331afa761044a1685742680d1e6c4f635c855100471590ef6bfa1e2"
|
||||
"sha256": "c7dae1884dadc4003c9a58e8fb090dbae9a60d5308a065644eb80b3ea54cb45a"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {
|
||||
|
|
@ -113,6 +113,13 @@
|
|||
"index": "pypi",
|
||||
"version": "==2.4.4"
|
||||
},
|
||||
"flask-static-digest": {
|
||||
"hashes": [
|
||||
"sha256:ab342609f5c345d37e35070d2ab56a1d29da2905f892b0b2e30a1e2cdb0ed76d"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==0.1.3"
|
||||
},
|
||||
"flask-wtf": {
|
||||
"hashes": [
|
||||
"sha256:57b3faf6fe5d6168bda0c36b0df1d05770f8e205e18332d0376ddb954d17aef2",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
import os
|
||||
from flask import Flask
|
||||
|
||||
from flask_static_digest import FlaskStaticDigest
|
||||
flask_static_digest = FlaskStaticDigest()
|
||||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
|
|
@ -10,6 +13,8 @@ def create_app():
|
|||
"DATABASE_URL", "sqlite:///app.db")
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
|
||||
flask_static_digest.init_app(app)
|
||||
|
||||
from . import db
|
||||
db.init_app(app)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
{"js/turbolinks/LICENSE": "js/turbolinks/LICENSE-b5a00f3a45b6fc8a7a183fe768c74588", "js/turbolinks/turbolinks.js": "js/turbolinks/turbolinks-30aee7cf575f8ed46ccc8cb4ac983228.js", "screencap.png": "screencap-ff5e88d4b4a373ccb046ee26fc1dbc45.png", "style.css": "style-e8de29faecc3e1767bbe0d7ea1a90a8b.css"}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
Copyright 2018 Basecamp, LLC
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
|
|
@ -6,8 +6,8 @@
|
|||
<title>{% block title %}{% endblock %} - DoneTh.at</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
<script src="{{ url_for('static', filename='js/turbolinks/turbolinks.js') }}"></script>
|
||||
<link rel="stylesheet" href="{{ static_url_for('static', filename='style.css') }}">
|
||||
<script src="{{ static_url_for('static', filename='js/turbolinks/turbolinks.js') }}"></script>
|
||||
{% endblock %}
|
||||
</head>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
</div>
|
||||
|
||||
<div class="max-w-xl m-auto overflow-hidden border-2 border-black border-gray-500 border-solid rounded-lg shadow-xl">
|
||||
<img src="{{ url_for('static', filename='screencap.png') }}">
|
||||
<img src="{{ static_url_for('static', filename='screencap.png') }}">
|
||||
</div>
|
||||
|
||||
<div class="max-w-lg m-auto text-center card">
|
||||
|
|
|
|||
Loading…
Reference in New Issue