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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:13:10+00:00 2026-05-29T05:13:10+00:00

I have my template folder with all html templates lieing together in the template

  • 0

I have my template folder with all html templates lieing together in the template folder with no directory structure as such.

I decided to arrange them on per app basis, but:

  • A template with template-tags belong to different apps.

Eg:
Login page(Login app) includes a banner that belongs to UserActivity [User activity app]. So, if I include the login template in login folder in templates, then it will be including stuff across other app’s template folder.

How should I structure so that all that referred stays in 1 place organized ?

Feel free to ask for more info.. 🙂

  • 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-29T05:13:11+00:00Added an answer on May 29, 2026 at 5:13 am

    Organizing your templates in subdirectories is definitely they way to go, but I am not sure if you can really reach the level of separation you are looking for.
    If your apps depend on each other you’ll always have includes and tags from other apps. So i’d put the templates to the app they belong to.

    But maybe the docs about template loaders can help you clarify your structure.

    For example the app_directories.Loader

    Loads templates from Django apps on the filesystem. For each app in
    INSTALLED_APPS, the loader looks for a templates subdirectory. If the
    directory exists, Django looks for templates in there.

    This means you can store templates with your individual apps. This
    also makes it easy to distribute Django apps with default templates.

    So you could put app-specific templates in in your app directories and keep your general templates (base.html, etc.) in the top level template dir of your project.

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

Sidebar

Related Questions

i have template base.html and some children templates. I don't know how to set
I have a directory structure: example.py templates/ __init__.py a.py b.py a.py and b.py have
I have a HTML email template in the App_Data folder of my MVC application.
I have a template file in a folder c:\template_folder. At runtime, I will create
I currently have a source control folder in TFS with all of my source
Having regex issues.. I have a series of directories that hold .htm templates... all
As per the docs,it expects this file in a folder named 'registration' in templates
I have the following structure in my assets folder of the app : -
I have template function compare defined as below. #include<iostream> using namespace std; template<typename T>
I have template that looks like this: 100 template<size_t A0, size_t A1, size_t A2,

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.