| Issue 79: | setuptools doesn't copy templates to forum packages. | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. python setup.py install What is the expected output? What do you see instead? /path/to/python/site-packages/forumpath/forum/templates The templates are not found by find_packages because they aren't a python package. What version of the product are you using? On what operating system? r54 Please provide any additional information below. Adding this to setup.py seems to fix the issue: --- setup.py (revision 54) +++ setup.py (working copy) @@ -30,6 +30,7 @@ url='https://code.google.com/p/django-forum/', license='BSD', packages=find_packages(), + package_data={'forum':['templates/*.html', 'templates/forum/*.html','templates/forum/feeds/*.html']}, include_package_data=True, zip_safe=False, install_requires=['setuptools'], There is probably an easier way to search for the templates though without explicitly naming them.
Sep 15, 2009
#1
djmuhles...@gmail.com
Jul 22, 2010
The above patch fixed this issue for me. |