On Feb 1, 2008 12:47 PM, Tom Tobin <[EMAIL PROTECTED]> wrote:
> That said, I'd like to propose that the majority of the contents of
> django.template.__init__ be preemptively moved to
> django.template.main, and imported back into __init__ as necessary.
> Furthermore, I'd like to see all use of __init__ modules for holding
> more than "moment-of-import" code to cease, for reasons of avoiding
> said nasty circular imports.

+1 on this. I actually started to do it myself about a month ago, but
it turned out to be more work than I could afford at the time. As I
was doing it, one thing that became clear very quickly is that quite a
few of the objects in the current django/template/__init__.py are
imported from other Django modules, so we'd have to be liberal in what
was imported into the new __init__.py. It would probably even be worth
doing "from django.template.main import *".

Adrian

-- 
Adrian Holovaty
holovaty.com | everyblock.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to