How to do web development in Python ?

Basic of Web Development in Python :

If you’re interested in building web applications. You will work with Django and Flask frameworks.

Django is more capable and has many built-in capabilities for larger applications; Flask is lightweight and suitable for smaller applications.

#Flask Example

from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello_codespeedy():
    return 'Hello, codespeedy!'

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

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top