Python | Notes
This post is a compilation of bullet points & notes taken from a book - Head First Python (Paul Barry) Ch 5 - Building a Webapp: Getting real Python Package Index (PyPI), is a centralized repository for third-party Python modules. When connected to the internet, one can automatically install packages from PyPI using pip. Flask is a micro-web framework, that can be used to build custom web applications. The __name__ value (maintained by the interpreter) identifies the currently active module. The @ symbol before a function's name identifies it as a decorator. Decorators let you change the behavior of an existing function without having to change the function's code. In a webapp, Flask's @app.route decorator to associate URLs with Python functions. A function can be decorated more than once e.g. @app.route('/') @app.route('/entry') def entry_page() -> 'html': return render_template('entry.html',the_title = 'Welcome to search4lett