Control: tag -1 + confirmed
The package fails to build with Django 1.7:
[...]
Test passed.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/doctest.py", line 2817, in <module>
sys.exit(_test())
File "/usr/lib/python2.7/doctest.py", line 2806, in _test
m = __import__(filename[:-3])
File "mini_buildd/root_urls.py", line 16, in <module>
django.contrib.admin.autodiscover()
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/__init__.py",
line 23, in autodiscover
autodiscover_modules('admin', register_to=site)
File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line
67, in autodiscover_modules
for app_config in apps.get_app_configs():
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 137, in
get_app_configs
self.check_apps_ready()
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 124, in
check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
make[1]: *** [override_dh_auto_test] Error 1
To get past this error you need to add this to your test script:
import django
if hasattr(django, 'setup'):
django.setup()
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]