Coder Social home page Coder Social logo

workshop_flask_7h1v's Introduction

	General start if virtual environment is already installed
Go to C:\home\projects\workshop_flask
click consequently:
		activate_flask.bat
		run_server.bat
		open_interface
*******************************************************************************

#First time

    virtualenv -p python env
    env\Scripts\activate.bat
    pip install -r requirements.txt
	
#	
SETX FLASK_ENV development
SETX FLASK_APP flaskr
env\Scripts\activate.bat

#open cmd in project root directory
> cd flask_app
> flask run

#pops up in cmd this:
 * Serving Flask app "flaskr" (lazy loading)
 * Environment: development
 * Debug mode: on
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 116-074-405
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
	
#open browser, use address: http://127.0.0.1:5000/app_runner/start
#   @bp.route('/start', methods=['GET', 'POST']) changed to @bp.route('/', methods=['GET', 'POST'])
# browser call is now: http://127.0.0.1:5000/app_runner/

	
#shut down (in new terminal):
> env\Scripts\deactivate.bat


Q/A
- what is taking command "flask run"?
- meaning of "http://127.0.0.1:5000/app_runner/start" ?
- what is "tester.py"
- removed "tester.py" from /flask_app_runner
- flask_app\tester.py
- how to edit web page?

***********************************
@bp.route('/', methods=['GET', 'POST'])

workshop_flask_7h1v's People

Contributors

dyashkir avatar trellixvulnteam avatar yyashkir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.