#14606: Application module imported twice when running development server
---------------------------------------------+------------------------------
          Reporter:  rlz                     |         Owner:  nobody   
            Status:  closed                  |     Milestone:           
         Component:  Core framework          |       Version:  1.2      
        Resolution:  invalid                 |      Keywords:  runserver
             Stage:  Design decision needed  |     Has_patch:  0        
        Needs_docs:  0                       |   Needs_tests:  0        
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Loading an app's `__init__.py` more than once is not a bug. An app should
 not be coded to expect that its `__init__.py` will run once and only once.
 If you have code the must run only once (guessing here since the original
 report does not actually describe what problem resulted from this
 behavior) then you need to ensure that happens by some other method than
 simply putting it in `__init__.py` and expecting that it will only get
 loaded once.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14606#comment:8>
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 django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to