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
20189ff4
Commit
20189ff4
authored
7 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Added two known problems in README
parent
20a01c4f
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
+40
-2
40 additions, 2 deletions
README.md
with
40 additions
and
2 deletions
README.md
+
40
−
2
View file @
20189ff4
...
@@ -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]
```
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