[Answer]-Django: rendering more than one view in a template

1👍

Those things are bound to the user, so you could get them in your parent templates.

Example:

parent.html

{{ request.user.get_something }}

define get_something(self) in the user model (your items in the cart, etc).

You can also do something like:

{% include 'elements/my_something.html' %}

Leave a comment