#21733: @python_2_unicode_compatible causes infinite recursion when module 
imported
more than once
---------------------------+--------------------------------------
     Reporter:  ntucker    |                    Owner:  nobody
         Type:  Bug        |                   Status:  closed
    Component:  Utilities  |                  Version:  1.6
     Severity:  Normal     |               Resolution:  invalid
     Keywords:             |             Triage Stage:  Unreviewed
    Has patch:  1          |      Needs documentation:  0
  Needs tests:  0          |  Patch needs improvement:  0
Easy pickings:  0          |                    UI/UX:  0
---------------------------+--------------------------------------

Comment (by hwkns):

 Thanks for tracking down the cause of this!  I wanted to stop the double
 imports from happening and be able to use relative imports where possible,
 so I did some more digging and found this SO post:
 http://stackoverflow.com/questions/23527435/python-path-not-consistent-in-
 django-double-module-imports

 I still had an `__init__.py` in my project root directory -- deleting that
 file stopped the double imports and thus stopped the infinite recursion
 for me.

--
Ticket URL: <https://code.djangoproject.com/ticket/21733#comment:8>
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/065.be5aa7906fc398f7d68e83d63cfaa0da%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to