title: How to write a reusable html/css/js component in django?
body: <p>I have some data in my model that is constantly being rendered using the same html/js/css. I'm tempted to come up with a custom templatetag to simplify rendering the model to something like <code>{% create_component mymodel %}</code>. But the problem is that css/js is also included and I would like that to be automatically added to the head of the page (not somewhere in the body of the page)</p>
  
  <p>Is there a way to accomplish this?</p>
  
  <p>Thank you!</p>