#20636: AttributeError: 'Settings' object has no attribute
'_original_allowed_hosts'
-----------------------------------+--------------------------------------
     Reporter:  aaugustin          |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Release blocker    |               Resolution:
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by charettes):

 * cc: charettes (added)


Comment:

 I hit a similar issue last week. Some people on IRC suggested that it
 might be due to an unbalanced `override_setting` but it wasn't the case.

 Somehow I ended up with two `django.conf.Settings` instance, one that was
 assigned the `_original_allowed_hosts` attribute while the test suite
 teardown mechanism attempted to delete it from the second one thus raising
 the same exception.

 I suggest you place `pdb` a breakpoint in `django.conf.Settings.__init__`
 and make sure only one instance is created. Hope that helps.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20636#comment:1>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.91718c6416e7a326bfa4821b075a03f9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to