How to inject a form in all pages in Django

Situation: you have a Django form and you want it to display on all pages of your site. For example, you want an add post button to be accessible in the navbar.

A possible way is to pass a form to the context of each view like in the snippet below, which is not very convenient, there can be a huge number of views in your project and to pass a form in each context of the views is a bad idea, also you need to render the form in the templates. The code will become harder to maintain.