mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
docs: Remove an out-of-date TemplateView reference.
No use of TemplateView passes a context anymore.
This commit is contained in:
committed by
Tim Abbott
parent
7c80cbbc77
commit
9fe7029b53
@@ -113,7 +113,7 @@ engine (files in `templates/zerver`).
|
|||||||
The syntax for using conditionals and other common structures can be
|
The syntax for using conditionals and other common structures can be
|
||||||
found [here][jconditionals].
|
found [here][jconditionals].
|
||||||
|
|
||||||
The context for Jinja2 templates is assembled from a few places:
|
The context for Jinja2 templates is assembled from a couple places:
|
||||||
|
|
||||||
- `zulip_default_context` in `zerver/context_processors.py`. This is
|
- `zulip_default_context` in `zerver/context_processors.py`. This is
|
||||||
the default context available to all Jinja2 templates.
|
the default context available to all Jinja2 templates.
|
||||||
@@ -129,15 +129,6 @@ zerver/views/home.py: response = render(request, 'zerver/app/index.html',
|
|||||||
|
|
||||||
The next line in the code being the context definition.
|
The next line in the code being the context definition.
|
||||||
|
|
||||||
- `zproject/urls.py` for some fairly static pages that are rendered
|
|
||||||
using `TemplateView`, for example:
|
|
||||||
|
|
||||||
```python
|
|
||||||
path('config-error/google', TemplateView.as_view(
|
|
||||||
template_name='zerver/config_error.html',),
|
|
||||||
{'google_error': True},),
|
|
||||||
```
|
|
||||||
|
|
||||||
### Frontend templates
|
### Frontend templates
|
||||||
|
|
||||||
For text generated in the frontend, live-rendering HTML from
|
For text generated in the frontend, live-rendering HTML from
|
||||||
|
|||||||
Reference in New Issue
Block a user