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

Problems overriding templates in custom app with new TEMPLATE setting #65

Open
bettsmatt opened this issue Jan 6, 2016 · 0 comments
Open

Comments

@bettsmatt
Copy link

During an upgrade to Django 1.8 we ran into some problems overriding the default templates with those in our custom_comments app. It appears the ordering in which django searches through template directories for a template has changed with the introduction of the TEMPLATE setting.

This caused our custom comments to revert to the default templates as they were found by django first. Our templates were at the following path custom_comments/templates/comments/TEMPLATE.html.

We managed to fix this by including our custom_comments app explicitly in the TEMPLATES DIRS list, which bumped our app to the top of the search. Could you please fix how you select templates so custom templates at the following path are override independent of template directory ordering custom_comments/templates/comments/TEMPLATE.html.

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