I have a menu that its content is obtained from a view, and that menu is in every view. Is there a proper way to get its context data to all my views without having to code again the same thing in every view?
I was thinking returning that context on a JsonResponse of another view and parse it in every template with JavaScript like an API, but is it a good practice?