Skip to content

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

Open
@bettsmatt

Description

@bettsmatt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions