#14606: import inside project urls.py import application module twice
------------------------------------+---------------------------------------
          Reporter:  rlz            |         Owner:  nessita
            Status:  assigned       |     Milestone:         
         Component:  Uncategorized  |       Version:  1.2    
        Resolution:                 |      Keywords:         
             Stage:  Unreviewed     |     Has_patch:  0      
        Needs_docs:  0              |   Needs_tests:  0      
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by nessita):

  * status:  new => assigned

Comment:

 Confirmed the double import. After some simple, I can confirm that
 manage.py:execute_manager() is called twice.

 The re-entrance point is located within the Command implementation for
 runserver:

 django/core/management/commands/runserver.py(99)

 where the autoreload.main(inner_run) method is called. This method spawns
 a new process that re-executes 'execute_manager()', and this causes the
 app to be imported twice (since the second time the app is imported is
 from a different thread, so the import is really executed twice).

 I'm not sure how this should be fix, so I'll mark this as 'design decision
 needed'.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14606#comment:4>
Django <http://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 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-updates?hl=en.

Reply via email to