Skip to main content

Popular posts from this blog

Advanced Java Solved manual 5th Sem (Information Technology)

By Harsh Tambade Contributor : Vishal Chavare  Advanced Java Programming Solved Manual 22517                    Advanced Java Programming Solved Manual 22517 Download Now👇👇 Practical No. 1  Practical No. 2  Practical No. 3  Practical No. 4  Practical No. 5  Practical No. 6  Practical No. 7  Practical No. 8  Practical No. 9  Practical No.9 Practical No. 12 Practical No. 16 Practical No. 18 Practical No.18 Practical No. 19 Practical No .19 Practical No. 20 Practical No. 21 Practical No. 22 Practical No. 23 Practical No. 24   Advanced Java Programming Solved Manual 22517 here's also a full solved manual but the clarity is not too good so please refer the below links: download full manual

Flask cheatsheet

  Flask Cheatsheet Loading... Importing Flask from flask import Flask Copy Most used import functions These are some of the most used import functions from flask import Flask , render_template , redirect , url_for , request Copy Boilerplate This is the basic template or barebone structure of Flask. from flask import Flask app = Flask ( __name__ ) @app . route ( "/" ) def hello_world ( ) : return "<p>Hello, World!</p>" app . run ( ) Copy route(endpoint) This is to make different endpoints in our flask app. @app . route ( "/" ) Copy Route method Allowing get and post requests on an endpoint. methods = [ 'GET' , 'POST' ] Copy Re-run while coding This is used to automatically rerun the program when the file is saved. app . run ( debug = True ) Copy Change host This is used to change the host. app . run ( host = '0.0.0.0' ) Copy Change port This is used to change the port. app . run ( port = 80 ) Copy SQ