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 7002981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:00:02+00:00 2026-05-27T21:00:02+00:00

A friend and developer I respect recently advised that I avoid using ‘Includes’ in

  • 0

A friend and developer I respect recently advised that I avoid using ‘Includes’ in django templates. The sum of their argument was that includes are ‘evil’.

I am having trouble understanding the logic; My novice opinion is that they are a great way to organise chunks of reusable html, and instead of having to edit html in multiple locations I can simply edit it in one when changes must be made.

What do all you geniuses think? Please provide some Pro’s and Con’s of using includes in Django templates

  • 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-27T21:00:03+00:00Added an answer on May 27, 2026 at 9:00 pm

    It seems a slightly odd opinion. Includes are a perfectly valid part of the template language, have been so since day 1 and have never AFAIK been recommended against or deprecated.

    Your friend might be trying to say that you should rely more on template inheritance (which is kind of an opposite include). That’s true as far as it goes – most of the time it’s better to compose your templates of blocks that override or extend ones defined in parent templates. But there’s definitely a use-case for includes.

    The only other reason he might say that would be because of the added filesystem hit of loading include templates from disk. In which case, he’s definitely off the mark – again, the template inheritance model which definitely is recommended would have exactly the same hit; and both can be avoided by using the optional caching filesystem loader.

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

Sidebar

Related Questions

I develop code using .net, and sometimes using ruby. My friend wants me to
A friend and I were discussing C++ templates. He asked me what this should
One friend's iphone developer account have only developer tab in iphone portal program, no
I have a friend who wishes to work as a freelance web developer, but
A website I recently completed with a friend has a gallery where one can
I got given a code from a friend that displayed the app users birth
I'm working on a game and I'd like to give a non-developer friend a
I am a .net developer. A friend of mine is planning to outsource a
My friend sent me a developer invitation for a facebook we are supposed develop
One of my friend want to use my developer account to submit app, because

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.