#16671: 5th tutorial on turning Polls into a reusable app -------------------------------+------------------------------------ Reporter: stumbles | Owner: ben@… Type: New feature | Status: new Component: Documentation | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------
Comment (by stumbles): Also, I just noticed that while the templates directory is included in the package, it's not installed when I run `python setup.py install`. After some hunting, I learnt that one way to ensure the templates are installed is to use `packages=setuptools.find_packages()` and `include_package_data=True` in my setup.py file as follows: {{{ from distutils.core import setup from setuptools import find_packages setup( name='django-polls', version='0.1', packages=find_packages(), license='', long_description=open('README.txt').read(), url='http://www.example.com/', author='Your Name', author_email='yourn...@example.com', include_package_data=True, ) }}} Is this the approach you would recommend? I'm not very experienced with packaging and noticed that the install behaved differently using after making these changes -- the installed files ended up in `django_polls-0.1-py2.7.egg` and `easy-install.pth` rather than the previous `polls` and `django_polls-0.1.egg-info`. -- Ticket URL: <https://code.djangoproject.com/ticket/16671#comment:13> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.