Skip to content

Commit

Permalink
refactor!: drop custom_context_processors
Browse files Browse the repository at this point in the history
With 2ee69ce implemented, the last
context processor `list_apis_settings` is not being used anymore in any
template. We can therefore remove it.

This also removes the instructions to add the context processor from the
install section of the README.

BREAKING CHANGE: APIS projects will have to remove the
`custom_context_processors` from the list of used `context_processors`
  • Loading branch information
b1rger committed Dec 12, 2023
1 parent 14a2489 commit c3d7155
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ To use the APIS framework in your application, you will need to add the followin

```

Also, add the following two [context processors](https://docs.djangoproject.com/en/4.2/ref/templates/api/#django.template.RequestContext):
```
# we need this for accessing `basetemplate`
"apis_core.context_processors.custom_context_processors.list_apis_settings",
```

Finally, add the APIS urls to your applications [URL Dispatcher](https://docs.djangoproject.com/en/4.2/topics/http/urls/):
```python
from django.urls import include
Expand Down
Empty file.
15 changes: 0 additions & 15 deletions apis_core/context_processors/custom_context_processors.py

This file was deleted.

0 comments on commit c3d7155

Please sign in to comment.