[Answered ]-How do i include my footer.html in my base.html

2👍

I’m unable to comment because of low rep, however i believe the runtime error you’re receiving is because you have both:

  • {% include "includes/footer.html" %} (in your base.html)
  • {% extends 'blog/base.html' %} (in your footer.html)

This setup seems to initiate a circular dependency issue.

👤sal

1👍

Your template appears to be in ‘blog/includes/footer.html’; you should use that in your include tag.

0👍

You’re including footer.html in footer.html. Don’t do that.

👤Glenn

-1👍

Change your include to following:

<div class="footer">
 {% include "includes/footer.html" %}    
</div>

Leave a comment