Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 525289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:39:21+00:00 2026-05-13T08:39:21+00:00

I do html/css by trade, and I have been working on and off django

  • 0

I do html/css by trade, and I have been working on and off django projects as a template designer. I’m currently working on a site that uses Jinja2, which I have been using for about 2 weeks. I just found out through reading the documentation that Jinja2 doesn’t support multiple level template inheritance, as in you can’t do more than one

{% extends "foo" %}

per rendering. Now I’m pretty sure you can do this in Django, which is powerful because you can specify a base template, specify 3 or 4 templates based on that, and then build the meat of your pages using those base templates. Isn’t the point of inheritance so you have more power to abstract so your only really messing with unique code?

In any case I have no idea what to do here. I don’t know if there is some way I can do it that will work as well as it could with the Django templates. I’m not exactly an expert at either Django or Jinja(2) but I can provide any information needed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:39:21+00:00Added an answer on May 13, 2026 at 8:39 am

    The way the documentation worded it, it seemed like it didn’t support inheritance (n) levels deep.

    Unlike Python Jinja does not support
    multiple inheritance. So you can only
    have one extends tag called per
    rendering.

    I didn’t know it was just a rule saying 1 extends per template…. I now know, with some help from the jinja irc channel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a rather simple site (minimal JS) with plain html and CSS. It
With HTML/CSS, how can I make an element that has a width and/or height
I have to deploy my php/html/css/etc code to multiple servers and i am looking
I want to use this pure HTML/CSS template for my ASP.NET website: http://sub3.tanguay.de I
Is there a utility that will generate html or css for blocks of code
I have a django website that is spilt depending on what user type you
The below HTML/CSS/Javascript (jQuery) code displays the #makes select box. Selecting an option displays
I am building a menu in HTML/CSS/JS and I need a way to prevent
I got a problem like this (this is html/css menu): Eshop | Another eshop
What I'd like to do is produce an HTML/CSS/JS version of the following. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.