Skip to content

Flask practice demo, both include dog book 2ed and wolf book 1st.

Notifications You must be signed in to change notification settings

TesterCC/helloflasky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

helloflasky

About Project

It's a practice demo according to dog book 2ed edition, wolf book 1st edition and basic flask demo.


Environment

  • Python 3.6 + Flask 1.0.2 + 3rd-party libs, etc.

About python 3.6 run flask error in PyCharm on MacOS.

Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment

PyCharm -> Edit Configurations -> Add Global variable -> Apply

LC_ALL    zh_CN.UTF-8
LANG      zh_CN.UTF-8

in shell

export LC_ALL="zh_CN.UTF-8"
export LANG="zh_CN.UTF-8"

if you local/user dir had dir named ".env", it will cause python-dotenv error, rename the dir ".env"

About Launch

Use ".env" or ".flaskenv" launch flask app

flask run

check program dir structure

tree -L 1 -FC -I "*.pyc"

About

Flask practice demo, both include dog book 2ed and wolf book 1st.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published