base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Jeff Blaine
Django 1.3 Hi all, I can't seem to get around this. It appears that, the following "index.html" template in */whatever/myproject/myapp* {% extends "base.html %} Looks for base.html as /whatever/myproject/base.html instead of /whatever/myproject/myapp/base.html My TEMPLATE_DIRS is set as fo

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread gladys
Hello, The root directory for your templates is in '/whatever/myproject', so of course it will look for your base.html here. Now if your base is in another location, say "/whatever/myproject/ myapp/base.html", your extends should look like this: {% extends "myapp/base.html" %}. Best of Luck. --

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Jeff Blaine
Gladys, On Thursday, April 14, 2011 4:12:29 PM UTC-4, gladys wrote: The root directory for your templates is in '/whatever/myproject', so > > of course it will look for your base.html here. > Now if your base is in another location, say "/whatever/myproject/ > myapp/base.html", your extends sh

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Yuka Poppe
Hi Jeff, I think Gladys is correct, the reason for your code finding the index template, is because its probably looking for 'myapp/index.html' instead of just 'index.html' Im not really sure if you're also distinguishing between the project template root and the app directory template dirs. Gen

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-15 Thread Joel Goldstick
On Thu, Apr 14, 2011 at 4:50 PM, Yuka Poppe wrote: > Hi Jeff, > > I think Gladys is correct, the reason for your code finding the index > template, is because its probably looking for 'myapp/index.html' > instead of just 'index.html' > > Im not really sure if you're also distinguishing between th

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-15 Thread Jeff Blaine
Thank you all. I will digest the replies when I have the time to properly focus back on the issue (it's obviously small, since I have a workaround in place by shoving base.html into the project root). It still, regardless of solutions, even in light of the words shared in this thread (which I'

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-15 Thread Brian Neal
On Apr 15, 2:23 pm, Jeff Blaine wrote: > Thank you all.  I will digest the replies when I have the time to properly > focus back on the issue (it's obviously small, since I have a workaround in > place by shoving base.html into the project root). > > It still, regardless of solutions, even in ligh

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-15 Thread Jeff Blaine
On Friday, April 15, 2011 4:21:56 PM UTC-4, Brian Neal wrote: > > You didn't post how you loaded the template in your view function. In > particular, what path string you used. > Ah. The missing piece to bring order to all of this confusion on my part. I was using "myapp/index.html", per