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

Added two known problems in README

parent 20a01c4f
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ This is a project implementing the blog post by Mbithe Nzomo. ...@@ -23,8 +23,8 @@ This is a project implementing the blog post by Mbithe Nzomo.
- [Part two](https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-two) - [Part two](https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-two)
- [Part three](https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-three) - [Part three](https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-three)
And might add some of the feature from [The Flask Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world). And might add some of the feature from [The Flask Mega-Tutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world).
The following list is some of the features might be used for User Portal: The following list is some of the features might be used for User Portal:
- [Chapter 2: Templates](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates) - [Chapter 2: Templates](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates)
- [Chapter 10: Email Support](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-x-email-support) - [Chapter 10: Email Support](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-x-email-support)
...@@ -32,3 +32,41 @@ The following list is some of the features might be used for User Portal: ...@@ -32,3 +32,41 @@ The following list is some of the features might be used for User Portal:
- [Chapter 19: Deployment on Docker Containers](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xix-deployment-on-docker-containers) - [Chapter 19: Deployment on Docker Containers](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xix-deployment-on-docker-containers)
- [Chapter 22: Background Jobs](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxii-background-jobs) - [Chapter 22: Background Jobs](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxii-background-jobs)
- [Chapter 23: APIs](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxiii-application-programming-interfaces-apis) - [Chapter 23: APIs](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxiii-application-programming-interfaces-apis)
-----
### Known Problems
1. flask development mode WARNING
```shell
$ flask run
* Serving Flask app "run.py"
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
```
**Solution:**
Add environment variable `FLASK_ENV` and set it to development
```shell
$ export FLASK_ENV=development
```
2. ValueError when click on Assign in employees admin page
```shell
file "APP_ROOT/venv/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/fields.py", line 189, in get_pk_from_identity
ValueError: too many values to unpack
```
**Solution(for now):**
Modify line 189 in `fields.py` from
```shell
cls, key = identity_key(instance=obj)
```
to
```shell
cls, key = identity_key(instance=obj)[:2]
```
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