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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:52:36+00:00 2026-06-17T17:52:36+00:00

Django’s philosophy is about webapps being reusable. But how to achieve template harmony between

  • 0

Django’s philosophy is about webapps being reusable. But how to achieve template harmony between different webapps?

Here is a hypothetical example: I want to resuse webapp 1 (e.g., django_openid) for OpenID enabled sign-on; and I want to reuse webapp 2 (e.g., django invitation app) for customer invitation; and I want to write my own app (MTV) for statistics

But their templates normally do not look belonging to a single project. How can I reuse the existing work (web app 1 and web app 2 in above hypothetical example) with least intrusive work?

  • 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-06-17T17:52:38+00:00Added an answer on June 17, 2026 at 5:52 pm

    I’m assuming that by ‘intrusive’, you mean editing files within the reusable app.

    Without being intrusive at all, you should be able to override any templates in a reusable app, by placing them in a project-level templates directory, or by providing a template with a matching name in an app of your own.

    Django template loading is completely configurable, but by default, it will look first in the directory named in settings as TEMPLATE_DIRS, and then in a templates directory in each of your installed apps, in the order they appear. By placing your app before openid or invitation in INSTALLED_APPS, then your custom templates will be loaded instead of the supplied ones.

    In some cases, I have created an “app” for a project, which is actually just an empty models.py and a collection of templates. Then I have a place to store the site base templates, as well as all of the overridden templates from other apps.

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

Sidebar

Related Questions

Django Endless Pagination works perfectly fine right until I use template inheritance. views.py: from
Django's template tags include an {% ifchanged %} test for use within loops to
Django (1.2 beta) will reset the database(s) between every test that runs, meaning each
Django newbie here, I need to do a count over a certain filter in
Django's internationalization is very nice (gettext based, LocaleMiddleware), but what is the proper way
Django is sending the pre/post_delete signals if you are using the queryset.delete() method, but
Django comes with a list of built-in middleware , but if one wants to
Django seems to be categorically rejecting ALL of my url template tags. Whenever I
Django has a template tag that allows you to remove certain html tags from
Django docs say that Context object is a stack: from django.template import Context c

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.