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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:48:06+00:00 2026-05-18T20:48:06+00:00

This is the structure of my site: mysite app_a templates a.html app_b templates b.html

  • 0

This is the structure of my site:

mysite
    app_a
       templates
           a.html
    app_b
       templates
           b.html
       views.py

In views.py, I want to get a.html,

So I use this :

return render_to_response('app_a/a.html')

but it shows an error :

TemplateDoesNotExist 

What do I need to do?

  • 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-18T20:48:07+00:00Added an answer on May 18, 2026 at 8:48 pm

    just use render_to_response(‘a.html’)

    Assuming you have the default app directory template loaders on, the problem is that the template path is actually a.html

    So in your current format, you would write a.html not app_a/a.html

    The recommended format for template directories is

    mysite
        app_a
           templates
               app_a
                   a.html
        app_b
           templates
               app_b
                   b.html
           views.py
    
        global_templates
           app_b
                b.html
    

    which would work with your example of app_a/a.html

    The reason this format is recommended is so you can sanely override templates on a per-app basis.

    You can easily get conflicting template names if all files are directly in the app template directory.

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

Sidebar

Related Questions

My site structure looks like this: project --apps ----app1 ----app2 --docs --templates ----module1 ----module2
I have a site with this simple structure: \public_html {files}.php \files \es For the
I approximatley this structure <div> <div id='1'> </div> <div id='2'> </div> </div> I want
My site structure looks like this: - top-level site --sub-site ---page ---page --sub-site ---page
I have a <ul> on my site with structure pretty much identical to this:
I'm receiving this weird problem when updating the structure of my site. Site URL
I am using CodeIgniter 2.1.1 my site structure is like mysite/ application/ controllers/ backend/
Perhaps this structure is not a good fit for Meteor, or maybe I'm thinking
Say i have this this structure. MyApp ├── main.py └── package ├── __init__.py ├──
I was given this structure of a webservice that i need to call 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.