Sync database
This commit is contained in:
2
python_flask/.gitignore
vendored
2
python_flask/.gitignore
vendored
@@ -1,6 +1,4 @@
|
||||
__pycache__/
|
||||
/venv/
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
*.bak
|
||||
*.bundle
|
||||
|
||||
1
python_flask/items.sqlite
Symbolic link
1
python_flask/items.sqlite
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/hannes/sync/items/items.sqlite
|
||||
@@ -9,7 +9,7 @@ from .helpers import *
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///{app.root_path}/../db.sqlite"
|
||||
app.config["SQLALCHEMY_DATABASE_URI"] = f"sqlite:///{app.root_path}/../items.sqlite"
|
||||
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
||||
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
Reference in New Issue
Block a user