Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
get_start_flask
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ishan Patel
get_start_flask
Commits
29c7de15
Commit
29c7de15
authored
6 years ago
by
Ishan Patel
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
f13d38b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+14
-4
14 additions, 4 deletions
README.md
with
14 additions
and
4 deletions
README.md
+
14
−
4
View file @
29c7de15
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment