[ckan-dev] Extension template help

Guido Stein gstein at appgeo.com
Fri Dec 9 22:24:59 UTC 2016


Hello,

I am building a new data view extension/theme and have come across an issue
I am not sure how to solve. Everything works for me when I am using
"setup.py develop" but when I try "setup.py install" I start to get the
following error:


jinja2.exceptions.TemplateNotFound


Here is how to reproduce my issue:

- run setup.py install

Here is what works:

- run setup.py develop

Here is what I have tried so far:

- updating my manifest to clearly include the template folder
<recursive-include /ckanext/myview/templates *>
- verify that the update_config includes an update within the class
<p.toolkit.add_template_directory(config, 'templates')>

At the end of the day I would like to publish this view on pypi, so while
the issue is one related to pip, it happends when I try and install
directly from setup.py... so it's a basic distribution issue to being
with...

Any help or pointers would be much appreciated.

-Guido

-- 
This e-mail message and any attachments may contain confidential or legally 
privileged information. If you are not an intended recipient or otherwise 
authorized to receive this message, you should not use, copy, distribute, 
disclose or take any action based on the information contained in this 
e-mail or any attachments. If you have received this message and material 
in error, please advise the sender immediately by reply e-mail and delete 
this message. Thank you on behalf of Applied Geographics, Inc. (AppGeo).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161209/8ac96b1a/attachment-0002.html>


More information about the ckan-dev mailing list