Skip to content

Template Discovery Override is Unclear & Error-Prone #982

@wesleyboar

Description

@wesleyboar

Note

Generated by AI. Edited by @wesleyboar.

Summary

The TEMPLATES['DIRS'] setting in taccsite_cms/settings.py uses globbing to include taccsite_custom folders ahead of app templates. While intended to let site-specific templates override packaged templates, the glob and ordering can be opaque and result in accidental shadowing.

Files / Locations

  • taccsite_cms/settings.py: TEMPLATES['DIRS'] configuration

Problems / Impact

  • Accidental shadowing: similarly-named templates in taccsite_custom subdirs may override package templates unexpectedly.
  • Order/priority can vary depending on filesystem ordering of glob results.
  • Difficult to audit which custom templates are active.

Client Apps

These apps rely on TACC/Core-CMS:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions