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

  • Home
  • SEARCH
  • 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 6036713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:57:54+00:00 2026-05-23T05:57:54+00:00

I have the following view within an app called ‘manager’: class AddObj(CreateView): model =

  • 0

I have the following view within an app called ‘manager’:

class AddObj(CreateView):
    model = Obj
    form_model = ObjForm
    template_name = 'obj_add.html'
    success_url = 'obj'
    @method_decorator(login_required)
    def dispatch(self, *args, **kwargs):
        return super(AddWar, self).dispatch(*args, **kwargs)

The template is located in:
[project folder]/templates/manager/obj_add.html

If I specify template_name=’manager/obj_add.html’, it loads.

Also, since I’m using the django template dependency to create breadcrumbs, I want obj_add.html to extend from templates/manager/m_base.html, which extends from templates/structure.html and adds a link to the breadcrumb block, and it loads if I call {% extends “manager/m_base.html” %}.

My question is: Doesn’t django look for the templates recursively through the templates folder? Is it normal to have to specify the folder?

  • 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-23T05:57:55+00:00Added an answer on May 23, 2026 at 5:57 am

    The reason you specify the app name when setting the template is twofold; there may be multiple templates of the same name, and you can have a project-level template override.

    A third-party app will often have basic templates, though you may want to shuffle or override some of the blocks for your own purpose. For example:

    App template:

    [project]/manager/templates/manager/obj_add.html
    

    Project override template:

    [project]/templates/manager/obj_add.html
    

    You can change the locations where templates will be loaded from.

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

Sidebar

Related Questions

I try to use the UIActionSheet within my iPhone App but have the following
I Have following code: Controller: public ActionResult Step1() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public
I have following classes. class A { public: void fun(); } class B: public
I have a small iPhone app which has a button on the first view.
I'm having the following issue: I have a tab-style app. Eacht tab has its
Update following initial comments The model has an object in it called 'Account', of
i have the following entities: public class Category { public virtual int CategoryID {
I have the following markup as a part of a Razor view: <table> <caption>Presidents</caption>
I have the following code where class A declares class B as friend. Should
I have the following view vw_Resources -> ResourceId -> Name -> ReportsTo (maps to

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.