Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template tag raises TemplateDoesNotExist #16

Closed
browniebroke opened this issue May 8, 2017 · 1 comment
Closed

Template tag raises TemplateDoesNotExist #16

browniebroke opened this issue May 8, 2017 · 1 comment

Comments

@browniebroke
Copy link
Contributor

  • Django Surveys version: 0.4.0
  • Django version: 1.8.x
  • Python version: 2.7
  • Operating System: Unix

Description

The template tag five_stars_text is raising a TemplateDoesNotExist: surveys/5-stars.txt when used.

It's because the template it's using isn't included in the distribution.

@browniebroke
Copy link
Contributor Author

Doesn't show up in tests because we are testing the local version, not the installed one:
https://blog.ionelmc.ro/2014/05/25/python-packaging/

browniebroke pushed a commit that referenced this issue May 8, 2017
This is a recommended practice to make sure the tests are actually
running on the installed version as opposed to the local version:
https://blog.ionelmc.ro/2014/05/25/python-packaging/
browniebroke pushed a commit that referenced this issue May 8, 2017
- Move all sources under src, to reproduce bug
- Fix MANIFEST to fix the bug
- Clean-up a bunch of hacks to get the version via import
- Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant