Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dmon6/flask_tutorial

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running a Flask App

Dependencies for my build

  • Python 3.7
  • pipenv - used for virtual enviroment management
  • flask
  • blinker
  • simplejson
  • python-dotenv
  • watchdog
  • flask-wtf

Install dependencies

pipenv install <dependencies>

Activate pipenv

You must be in virtual environment to run the flask app

pipenv shell

Environment Variables for flask app and run

export FLASK_APP=<flask_app_name>.py
export FLASK_DEBUG=1 #sets it to debug, no need to stop server to see updated changes
flask run

Run debug mode from within the script

if __name__ == 'main':
	app.run(debug=True)

About

Flask tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.