Re: Extending a template - error

2006-10-12 Thread MerMer
I've now got the TEMPLATE_DIR as 'mytemplates' and that's fixed it. Your advice on what is an absolute and relative path was very helpful. Many thanks. Based on the above, could you give me some examples on what my Media Root and URL, and Admin Media Prefix should be. I think I'm also having is

Re: Extending a template - error

2006-10-12 Thread Don Arbow
On Oct 12, 2006, at 12:29 PM, MerMer wrote: > > Don, > > Thanks for the advice - but it's not working for me. > > My full path is > "c:/python24/lib/site-packages/django/bin/mysite/mytemplates" which > works. > > I've tried "/mytemplates" and "mysite/mytemplates" as the TEMPLATE_DIR > path but the

Re: Extending a template - error

2006-10-12 Thread MerMer
Don, Thanks for the advice - but it's not working for me. My full path is "c:/python24/lib/site-packages/django/bin/mysite/mytemplates" which works. I've tried "/mytemplates" and "mysite/mytemplates" as the TEMPLATE_DIR path but they don't. The {% extends "promotion_list.htmt"%} is not working

Re: Extending a template - error

2006-10-12 Thread Don Arbow
On Oct 12, 2006, at 8:03 AM, MerMer wrote: > > my settings look like the following:- > > TEMPLATE_DIRS = ( > "c:/python24/lib/site-packages/django/bin/mysite/mytemplates", > > When I set up Django I just put in the full path in the belief that > this would make things easier while I was testin

Re: Extending a template - error

2006-10-12 Thread MerMer
Julio, I not sure what directory you're refering to. The tutorial is quite explicit that one should create your own template directory within your site. It wouldn't make any sense if these then had to refer to base templates elsewhere. MerMer --~--~-~--~~~---~--~-

Re: Extending a template - error

2006-10-12 Thread MerMer
my settings look like the following:- TEMPLATE_DIRS = ( "c:/python24/lib/site-packages/django/bin/mysite/mytemplates", When I set up Django I just put in the full path in the belief that this would make things easier while I was testing stuff. MerMer --~--~-~--~~~-

Re: Extending a template - error

2006-10-12 Thread Malcolm Tredinnick
On Thu, 2006-10-12 at 05:36 -0700, MerMer wrote: > I am trying to extend a template. My parent Template is in > mysite/mytemplates/promotions/ > and the child template is in mysite/mytemplates/polls/ > > I get the following error saying that the template cannot be found when > I try:- > > {% ex

Re: Extending a template - error

2006-10-12 Thread Julio Nobrega
I think templates to be inherited must be on the base template dir... I remember reading this somewhere but can't find references online. Can you test please? On 10/12/06, MerMer <[EMAIL PROTECTED]> wrote: > > I've now moved the parent template into the same directory as the child > template b

Re: Extending a template - error

2006-10-12 Thread MerMer
I've now moved the parent template into the same directory as the child template but I'm still getting the same error. Exception Value:Template 'results.html' cannot be extended, because it doesn't exist Exception Location: C:\Python24\lib\site-packages\django_src\django\template\