According Blog: https://hackernoon.com/learn-blockchains-by-building-one-117428612f46
- check if python installed
- Windows 10: open CMD >
python -V
*not installed > [Download Windows x86-64 executable installer] 0
pip install --upgrade Flask
resolves > AttributeError: 'Request' object has no attribute 'is_xhr'
def new_transaction():
values = request.get_json(force=True)
instead of
def new_transaction():
values = request.get_json()
For Debugging a Flask App set an environment variable (using CMD)
Source
set FLASK_ENV=development