Changes between Initial Version and Version 2 of Ticket #31870


Ignore:
Timestamp:
08/09/2020 08:04:30 AM (18 months ago)
Author:
Iuri de Silvio
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31870

    • Property Owner changed from nobody to Iuri de Silvio
    • Property Status changed from new to assigned
  • Ticket #31870 – Description

    initial v2  
    2020}}}
    2121
     22If the `apps.py` is there, but the `default_app_config` is in `__init__.py`, it fails too.
     23
     24{{{
     25Traceback (most recent call last):
     26  File "django/django/test/utils.py", line 381, in inner
     27    return func(*args, **kwargs)
     28  File "django/tests/apps/tests.py", line 541, in test_explicit_default_app_config_with_empty_apps
     29    with self.settings(INSTALLED_APPS=['apps.explicit_default_config_with_empty_apps']):
     30  File "django/django/test/utils.py", line 336, in __enter__
     31    return self.enable()
     32  File "django/django/test/utils.py", line 410, in enable
     33    apps.set_installed_apps(self.options['INSTALLED_APPS'])
     34  File "django/django/apps/registry.py", line 355, in set_installed_apps
     35    self.populate(installed)
     36  File "django/django/apps/registry.py", line 91, in populate
     37    app_config = AppConfig.create(entry)
     38  File "django/django/apps/config.py", line 160, in create
     39    if new_entry == app_config_name:
     40UnboundLocalError: local variable 'app_config_name' referenced before assignment
     41}}}
     42
    2243Looks like a regression added in https://code.djangoproject.com/ticket/31180.
Back to Top