From cdfbbaa703b0cd9772d98b843f93a862c3c39b01 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Tue, 29 May 2018 16:27:44 -0500 Subject: [PATCH] Added solution2 for sqlite problem --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c98a8c..2dfe0a9 100644 --- a/README.md +++ b/README.md @@ -114,13 +114,22 @@ $ flask run OperationalError: (sqlite3.OperationalError) no such table ``` - **Solution:** + **Solution1:** Move sqlite database file into app directory ```shell $ mv app.db app/ ``` + **Solution2(Preferred):** + Since the problem is because of relative path, using absolute path will solve it. + + For instance: + + ```python + SQLALCHEMY_DATABASE_URI='sqlite:////tmp/app.db' + ``` + 4. **FSADeprecationWarning** while accessing database using SQLAlchemy ```shell -- GitLab