Terminology Flashcards

1
Q

What does “Project” mean in Django?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does “Application” mean in Django?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are “Views” in Django?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Templates?

What are the default templating languages shipped with Django?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are “Models” in Django?

A

A class that represents a database table. An instance of a model class represents a row of that database table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly