Skip to content
Snippets Groups Projects

Update README.md

Closed Ishan Patel requested to merge ishan747/get_start_flask:patch-1 into master
1 file
+ 14
4
Compare changes
  • Side-by-side
  • Inline
+ 14
4
@@ -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
Loading