Terminology Flashcards
What does “Project” mean in Django?
A project is a collection of configuration and apps for a particular website. A project can contain multiple apps. A project’s root directory (the one that contains manage.py) is usually the container for all of a project’s applications which aren’t installed separately.
What does “Application” mean in Django?
The term application describes a Python package that provides some set of features. Applications may be reused in various projects. There’s no restriction that a “project” package can’t also be considered an application and have models, etc. (which would require adding it to INSTALLED_APPS).
What are “Views” in Django?
Code that takes a Request object and returns a Response object. The View is usually responsible for getting data from the Models and passing it to the Templates.
What are Templates?
What are the default templating languages shipped with Django?
A Template contains the static parts of the desired HTML output as well as some special syntax describing how dynamic content will be inserted. Django’s default templating engines are Django Template Language (DTL) or Jinja2.
What are “Models” in Django?
A class that represents a database table. An instance of a model class represents a row of that database table.