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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:26:10+00:00 2026-06-01T17:26:10+00:00

I got a bit confused, because when I use the generic ListView class, Django

  • 0

I got a bit confused, because when I use the generic ListView class, Django is looking for “appname/objectname_list.html” inside the “appname/templates” folder. This results in:

appname/templates/appname/objectname_list.html

If I supply “template_name”, it does not require the subfolder inside the templates folder anymore.

Why doesn’t it find the objectname_list.html inside the “templates” folder like before in 1.3 ? Did I configure something wrong or did they change the place where I’m supposed to put my templates as well ? In 1.3 I used to place template html files inside “appname/templates” directly instead of using a subfolder.

For me it does not make sense to use another subfolder with the name of the app, where the templates folder is already in. Or am I missing something useful ?

I could not find anything about it in the release notes.

  • 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-01T17:26:11+00:00Added an answer on June 1, 2026 at 5:26 pm

    I don’t think this is 1.4 specific. If you will want your template in a subfolder, specify template_name = 'subfolde/template.html'

    Regarding template dirs, from the docs:

    … For each app in
    INSTALLED_APPS, the loader looks for a templates subdirectory. If the
    directory exists, Django looks for templates in there.

    So the actual dir is:

    projectname/appname/templates/appname/objectname_list.html
                ^^^               ^^^
    

    This helps you keep everything inside the app folder and does not require you to configure anything,

    This also means that if you have apps foo, bar and baz, you can still have one templates dir under one of the apps:

    myproj/foo/templates/foo/...
    myproj/foo/templates/bar/...
    myproj/foo/templates/baz/...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lately I got a bit confused concerning class-pathes in Manifest.mf-files. So what I want
Sorry i got myself a bit confused as to how to make the db
I'm building a new app and got a bit confused of Howto do it:
This is pretty much a basic question since I got a bit confused When
I am a little bit confused about the ComponentName class in Android. There are
I am using Quartz framework, got bit confused with time generation. This is a
I'm just starting to learn web dev, but got myself a bit confused when
I'm learning C right now and got a bit confused with character arrays -
I got a bit confused: In production we have two processes communicating via shared
Got a bit of a mind freeze at the moment. I have the following

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.