diff options
| author | Juan Catalano <catalanojuan@gmail.com> | 2013-09-06 20:23:25 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-13 20:09:41 -0400 |
| commit | 6feb75129f42fdac751d0b79a2a005b4c0ad5c2d (patch) | |
| tree | 5bb6cbb83482c15af59cfce69ae2339ff2aa0f3d /tests/utils_tests/test_module/another_bad_module.py | |
| parent | 39b49fd33970720b973498d2c8275ced129d3a7a (diff) | |
Fixed #21060 -- Refactored admin's autodiscover method to make it reusable.
We want to be able to use it for instance for discovering `tasks.py` modules
inside the INSTALLED_APPS.
This commit therefore moves the logic to `autodiscover_modules` method in
django.utils.module_loading.
Diffstat (limited to 'tests/utils_tests/test_module/another_bad_module.py')
| -rw-r--r-- | tests/utils_tests/test_module/another_bad_module.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/utils_tests/test_module/another_bad_module.py b/tests/utils_tests/test_module/another_bad_module.py new file mode 100644 index 0000000000..eac25c4aa5 --- /dev/null +++ b/tests/utils_tests/test_module/another_bad_module.py @@ -0,0 +1,8 @@ +from . import site +content = 'Another Bad Module' + +site._registry.update({ + 'foo': 'bar', +}) + +raise Exception('Some random exception.') |
