#25624: Autoreload fails if jinja2.ModuleLoader used
-------------------------------------+-------------------------------------
     Reporter:  svartalf             |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Utilities            |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  autoreload, jinja2,  |             Triage Stage:  Accepted
  ModuleLoader                       |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by hackedd):

 This patch fixes the issue by ignoring modules without a `__file__`
 attribute altogether. There are probably cases where this is not quite
 desired behaviour, but I have no idea how to test this.

 The other two options that I can think of to fix this, checking for
 `weakref.ProxyType` or the `_jinja2_module_templates_` module name prefix,
 don't really seem like the right solution either...

--
Ticket URL: <https://code.djangoproject.com/ticket/25624#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.2df50fdbd3c5ca8501351bc42c34f9be%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to