fix login form from tutorial (also maybe fixed image)

This commit is contained in:
2019-08-19 22:21:14 -05:00
parent b19a44a6e9
commit f9bb7329a3
3 changed files with 1 additions and 1 deletions

View File

@@ -1,4 +0,0 @@
import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or os.urandom(16)

BIN
app/resources/blooper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -29,5 +29,5 @@ def getstatus():
@app.route('/images/blooper.jpg')
def send_image():
#filename = os.path.join('resources', 'blooper.jpg')
return send_from_directory('/resources/', 'blooper.jpg', as_attachment=True)
return send_from_directory('/../resources/', 'blooper.jpg', as_attachment=True)