[Grok-dev] Rules for app_templates lookup

Achim Domma domma at procoders.net
Sat Aug 7 05:01:11 EDT 2010


Sometimes the obvious is hard to see. I didn't got the match between app.py and app_templates. Thanks for the fast response!

cheers,
Achim


Am 07.08.2010 um 00:24 schrieb Jeff Peterson:

> Create a template folder in the same place as the module. mymodule_templates put them there.
> 
> Sent from my iPod
> 
> On Aug 6, 2010, at 4:52 PM, Achim Domma <domma at procoders.net> wrote:
> 
>> Hi,
>> 
>> I have some code which works fine, as long as it's in the generated app.py. I tried to move some classes to another file called mymodule.py. After that I get the warning, that a template in my app_templates is unused. And I get an error, because the template for my view class cannot be found anymore.
>> 
>> How do I move some classes to a different module? How are templates for views in that module looked up?
>> 
>> cheers,
>> Achim
>> _______________________________________________
>> Grok-dev mailing list
>> Grok-dev at zope.org
>> https://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list