Web Frameworks Flashcards
Which web framework mentioned in this lesson is distributed as a single-file?
Bottle
Which web framework was originally created and named as an April Fool’s joke?
Flask
Which framework is one of the oldest Python micro-frameworks?
CherryPy
Which web framework is based on Werkzeug and Jinja2?
Flask
Which web framework follows the MTV architectural pattern?
Django
Which web framework provides backward compatibility with Python 2.7?
Web2Py
Which web framework, although comprised of a single file, is not part of the Python standard library?
Bottle
Which web framework comes with its own web-based IDE?
Web2Py
What was the name of the file you used to load the classic book data into the database in Lab 10?
book_import_data.json
Which 2 Web Frameworks are the most commonly used according to a recent Stack Overflow survey?
Flask, Django
What’s a web framework?
provides features with which you can build websites, so it does more than a simple web (HTTP) server. Contains features such as routing (URL to server function), templates (HTML with dynamic inclusions), debugging, and more.
Additional functionality included in most web frameworks:
- HTTP protocol handling: handling HTTP verbs (GET, POST, etc)
- Authentication: who are you, what can you do? Route functions/classes, serve static files (HTML, CSS, JS, images)
- Establish a session: serve dynamic data (databases, services)
- Get & validate parameters: return values and HTTP status
Django:
- emphasizes reusability and pluggability
- provides URL routing, database version control, schema migrations, authentication support, web server support, template engine and object-relational mapper (ORM)
Flask:
- created by Armin Ronacher
- micro framework due to simple core
- no database abstract layer
- no form validation
Web2Py:
- free, open source, scalable, full stack framework for rapid development
- no prereqs for installation and configuration
- comes with own web-based IDE with code editor, debugger, and one-click deployment
- Built-in security, Model-View-Controller architecture, support for internalization