From c5305caf360fbac70e80d526f29489d96831012c Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Thu, 5 May 2016 15:06:29 +0200 Subject: [PATCH] switched to configurable db --- app/requirements.txt | 1 + app/rollerverbrauch/__init__.py | 2 -- app/rollerverbrauch/templates/layout.html | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/requirements.txt b/app/requirements.txt index 4887658..4fe78c1 100644 --- a/app/requirements.txt +++ b/app/requirements.txt @@ -2,3 +2,4 @@ Flask Flask-SQLAlchemy Flask-Security Flask-WTF +PyMySQL diff --git a/app/rollerverbrauch/__init__.py b/app/rollerverbrauch/__init__.py index 9828fbe..0465b5d 100644 --- a/app/rollerverbrauch/__init__.py +++ b/app/rollerverbrauch/__init__.py @@ -11,7 +11,6 @@ from flask_security.core import current_user from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) -app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////data/rollerverbrauch.db' app.config['SECURITY_PASSWORD_HASH'] = 'pbkdf2_sha512' app.config['SECURITY_REGISTERABLE'] = True app.config['SECURITY_CHANGEABLE'] = True @@ -217,4 +216,3 @@ def get_statistics(): for vehicle in current_user.vehicles: stats.append(VehicleStats(vehicle)) return render_template('statistics.html', data=stats) - diff --git a/app/rollerverbrauch/templates/layout.html b/app/rollerverbrauch/templates/layout.html index 6e888d9..2df1885 100644 --- a/app/rollerverbrauch/templates/layout.html +++ b/app/rollerverbrauch/templates/layout.html @@ -92,7 +92,7 @@ - Rollerverbrauch 0.1 + refuel journal @@ -134,7 +134,7 @@ - Rollerverbrauch + refuel journal