Chapter 19 · 10 min read
Glossary
Glossary
Short definitions of the terms used in this course.
| Term | Meaning |
|---|---|
| Project | The whole Django website: settings, root URLs and server entry points. |
| App | One feature of a project, packaged as a Python package, for example blog. |
| manage.py | The command-line helper for a project. |
| Virtual environment | A private folder of Python packages for one project. |
| Request | What the browser sends to the server. |
| Response | What Django sends back to the browser. |
| URLconf | A urls.py file: a list of path() rules that map addresses to views. |
| View | A function or class that receives a request and returns a response. |
| Path converter | A part of a URL pattern, such as int or str, that captures a value from the address. |
| Namespace | A prefix given to an app's URL names with app_name, for example blog:home. |
| Template | An HTML file with placeholders and simple logic that Django fills in. |
| Context | The dictionary of data a view passes to a template. |
| Template inheritance | Building pages from a base template with extends and block. |
| Filter | A template feature that changes a value's display, such as upper or date. |
| Autoescaping | Django's replacement of special HTML characters in variables to prevent XSS. |
| Template partial | A named fragment inside a template file, added in Django 6.0. |
| Static files | CSS, JavaScript and images that do not change per request. |
| STATIC_ROOT | The folder where collectstatic gathers static files for production. |
| Model | A Python class that describes a database table. |
| Field | A model attribute that becomes a database column. |
| ForeignKey | A field that links each row to a row of another model. |
| Migration | A Python file that records a change to your models so the database can be updated. |
| ORM | Object-relational mapper: use Python classes and methods instead of SQL. |
| Manager | The objects attribute of a model, the entry point for queries. |
| QuerySet | A lazy, chainable list of database results. |
| Lookup | A double-underscore filter such as title__icontains. |
| N+1 problem | One query for a list plus one extra query per item for related data. |
| Fetch mode | A Django 6.1 setting on a QuerySet that controls how unfetched fields are loaded. |
| SQLite | A small database stored in one file; Django's default for development. |
| Admin site | Django's built-in back office for managing data. |
| Superuser | An account with every permission. |
| Form | A class that renders HTML inputs and validates submitted data. |
| ModelForm | A form generated from a model. |
| CSRF token | A hidden secret in each POST form that blocks forged requests from other sites. |
| Post/Redirect/Get | Redirecting after a successful form submission so refreshing does not resubmit. |
| Generic view | A ready-made class-based view such as ListView or CreateView. |
| Mixin | A small class that adds one behaviour to a view, like LoginRequiredMixin. |
| Session | Server-side data tied to a browser cookie; it keeps a user logged in. |
| Authentication | Proving who a user is, for example by logging in. |
| Permission | A rule about what a user may do. |
| Middleware | Code that wraps every request and response. |
| TestCase | The Django base class for tests, which gives each test a clean temporary database. |
| Test client | A fake browser used in tests to request pages and post forms. |
| SECRET_KEY | A secret setting used to sign cookies and tokens. |
| DEBUG | A setting that shows detailed error pages; it must be off in production. |
| ALLOWED_HOSTS | The list of hostnames a site may serve. |
| WSGI and ASGI | The standards that production web servers use to talk to a Python web app. |
| LTS | Long-term support release: a version that gets security fixes for much longer. |
| MAILERS | A Django 6.1 setting that configures email backends. |
| Serializer | A Django REST Framework class that converts model objects to and from JSON. |
