On 10/1/06, Marco Amato <[EMAIL PROTECTED]> wrote:
> Hi to all !

> TEMPLATE_DIRS = (
>     '/home/marco/test_/test/selecto/')
...
>     t = loader.get_template('selecto/index.html')

...
>  where I am wrong ?

By the look of it, you have duplicated 'selecto' in the path that
Django is looking for your template. When django loads a template, it
adds the path specified in get_template to the path provided in
TEMPLATE_DIRS. Your application currently specifies 'selecto' in both
the TEMPLATE_DIRS and when you ask for the template

You have a few options to get your application working:

1) load the template 'index.html', rather than 'selecto/index.html'
2) Drop 'selecto' from your TEMPLATE_DIRs definition
3) put your templates in /home/marco/test_/test/selecto/selecto

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to