Skip to content
Snippets Groups Projects
Commit cdfbbaa7 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Added solution2 for sqlite problem

parent ded781f5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment