Skip to content
Snippets Groups Projects
Commit 29c7de15 authored by Ishan Patel's avatar Ishan Patel
Browse files

Update README.md

parent f13d38b8
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,17 @@ $ flask run ...@@ -90,7 +90,17 @@ $ flask run
----- -----
### Known Problems ### Known Problems
1. flask development mode WARNING 1. Error for installing mysqlclient and mysql
**Solution**
Add these commands within the enviorment
```shell
$ env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install mysqlclient
$ env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install mysql
```
2. flask development mode WARNING
```shell ```shell
$ flask run $ flask run
...@@ -108,7 +118,7 @@ $ flask run ...@@ -108,7 +118,7 @@ $ flask run
$ export FLASK_ENV=development $ export FLASK_ENV=development
``` ```
2. ValueError when click on Assign in employees admin page 3. ValueError when click on Assign in employees admin page
```shell ```shell
file "APP_ROOT/venv/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/fields.py", line 189, in get_pk_from_identity file "APP_ROOT/venv/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/fields.py", line 189, in get_pk_from_identity
...@@ -130,7 +140,7 @@ $ flask run ...@@ -130,7 +140,7 @@ $ flask run
190 return ':'.join(text_type(x) for x in key) 190 return ':'.join(text_type(x) for x in key)
``` ```
3. When use SQLite as database 4. When use SQLite as database
```shell ```shell
OperationalError: (sqlite3.OperationalError) no such table OperationalError: (sqlite3.OperationalError) no such table
...@@ -152,7 +162,7 @@ $ flask run ...@@ -152,7 +162,7 @@ $ flask run
SQLALCHEMY_DATABASE_URI='sqlite:////tmp/app.db' SQLALCHEMY_DATABASE_URI='sqlite:////tmp/app.db'
``` ```
4. **FSADeprecationWarning** while accessing database using SQLAlchemy 5. **FSADeprecationWarning** while accessing database using SQLAlchemy
```shell ```shell
APP_ROOT/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS APP_ROOT/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS
......
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