Opened 19 years ago

Last modified 18 years ago

#626 closed enhancement

Move template modules to django.core.template package — at Version 2

Reported by: Adrian Holovaty Owned by: Adrian Holovaty
Component: Core (Other) Version: 1.0
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

There are too many template-related modules lying around in django.core. We should create a django.core.template package and put the following modules in it:

  • django.core.defaultfilters
  • django.core.defaulttags
  • django.core.template (would be django.core.template.__init__ to retain identical interface)
  • django.core.template_loader
  • django.core.template_file

To maintain backwards compatibility, django.core.template_loader should still exist (at least until 1.0), because a lot of Django code does from django.core.template_loader import ....

We should probably do this before #582 and #625, because those tickets both add template-related modules to django.core.

Change History (3)

comment:1 by Adrian Holovaty, 19 years ago

Status: newassigned

comment:2 by Adrian Holovaty, 19 years ago

Description: modified (diff)

(Changed formatting in description.)

by Adrian Holovaty, 19 years ago

Attachment: 626_import_error.patch added

Patch that causes circular-import problem.

Note: See TracTickets for help on using tickets.
Back to Top