Skip to content

[FR] Move templates to the database #12031

Open

Description

@SchrodingersGat

Rather than storing templates as files, move them into the database:

Advantages

  • Easier duplication of templates
  • Bypass any caching issues fetching template files from proxy server (currently hacks in place)
  • Easier permission controls

References

https://django-dbtemplates.readthedocs.io/en/latest/index.html

Breaking

This would be a major overhaul of the template system, so targeting the 2.0.0 release

Activity

  1. added this to the 2.0.0 milestone on May 29, 2026
  2. wolflu05 commented on May 29, 2026

    @wolflu05
    Member

    Maybe we can then also make the uploading of an existing file not required and use some default base template by default?

  3. SchrodingersGat commented on May 29, 2026

    @SchrodingersGat
    MemberAuthor

    @wolflu05 upload of existing file would be removed entirely I think

  4. SchrodingersGat commented on May 29, 2026

    @SchrodingersGat
    MemberAuthor

    We can expose a set of built-in template templates to work from

  5. added
    report
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorreport

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions