Commit c1dac4d2 authored by raspi's avatar raspi

Created database and access it from app.py

parent d83117b8
......@@ -3,7 +3,7 @@ import RPi.GPIO as GPIO
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////energyUsage'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///energyUsage'
db = SQLAlchemy(app)
db.create_all()
GPIO.setmode(GPIO.BCM)
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment