Olivier Guilyardi wrote:
> Malcolm Tredinnick wrote:
>> On Fri, 2009-01-09 at 14:00 +0100, Olivier Guilyardi wrote:
>>>
>>> How can I add support for this optional templates/telemeta directory,
>>> automatically, whenever one has installed telemeta ?

>> The telemeta source would need to support this directly, by passing a
>> list of template names to render_to_response() (not just a single
>> template name). Have a look at the usage of render_to_response() in
>> django/contrib/admin/options.py, for example.
>>
>> Alternatively, it could use select_template() as documented in [1].
>> Particularly, see the "Tip" in that piece of documentation. That
>> describes the method used.
>>
> Regarding render_to_response() with multiple templates or select_template(), 
> by
> reading admin's options.py it looks to me like this shouldn't be necessary. By
> using render_to_response('telemeta/mediaitem_detail.html') the template loader
> should automatically look for
> my_project/templates/telemeta/mediaitem_detail.html and then for
> telemeta_app/templates/telemeta/mediaitem_detail.html. Am I wrong ?

I forgot to configure TEMPLATE_DIRS in my_project. It works ok now. Sorry for
the noise.

Thanks

-- 
  Olivier Guilyardi / Samalyse

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to