From 5c1baa3b7e3bf5d2693a7634dabff64c82852130 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 18 Jul 2019 19:20:38 +0200 Subject: [PATCH] local version with sqlite only --- app/__init__.py | 4 ++-- app/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 8a69b1f..8c6f89e 100755 --- a/app/__init__.py +++ b/app/__init__.py @@ -23,11 +23,11 @@ app = Flask(__name__) app.config['SECRET_KEY'] = 'super secret key' #app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/mydatabase.db' app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER -app.config['SQLALCHEMY_DATABASE_URI'] = 'rqlite+pyrqlite://localhost:4001/' +#app.config['SQLALCHEMY_DATABASE_URI'] = 'rqlite+pyrqlite://localhost:4001/' app.config['DEBUG'] = True app.config['PORT'] = 80 -#app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'mydatabase.db') +app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'mydatabase.db') db = SQLAlchemy(app) light = not os.path.isdir(UPLOAD_FOLDER) DOMAIN = environ.get('DOMAIN') diff --git a/app/models.py b/app/models.py index 076ca22..0890844 100755 --- a/app/models.py +++ b/app/models.py @@ -2,7 +2,7 @@ from app import db from marshmallow import Schema, fields, ValidationError, pre_load import datetime from sqlalchemy import Column, Integer, DateTime -import flask_whooshalchemyplus +#import flask_whooshalchemyplus authors = db.Table('books_authors',