{"action":"closed","issue":{"url":"https://api.github.com/repos/thoas/django-sequere/issues/10","labels_url":"https://api.github.com/repos/thoas/django-sequere/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/thoas/django-sequere/issues/10/comments","events_url":"https://api.github.com/repos/thoas/django-sequere/issues/10/events","html_url":"https://github.com/thoas/django-sequere/issues/10","id":102243969,"number":10,"title":"Issue with dotted AppConfig paths in INSTALLED_APPS","user":{"login":"almalki","id":685705,"avatar_url":"https://avatars.githubusercontent.com/u/685705?v=3","gravatar_id":"","url":"https://api.github.com/users/almalki","html_url":"https://github.com/almalki","followers_url":"https://api.github.com/users/almalki/followers","following_url":"https://api.github.com/users/almalki/following{/other_user}","gists_url":"https://api.github.com/users/almalki/gists{/gist_id}","starred_url":"https://api.github.com/users/almalki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almalki/subscriptions","organizations_url":"https://api.github.com/users/almalki/orgs","repos_url":"https://api.github.com/users/almalki/repos","events_url":"https://api.github.com/users/almalki/events{/privacy}","received_events_url":"https://api.github.com/users/almalki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T21:43:25Z","updated_at":"2015-09-05T15:02:40Z","closed_at":"2015-09-05T15:02:40Z","body":"When django.contrib.admin.apps.SimpleAdminConfig is configured in INSTALLED_APPS, it results in this exception:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/spv/manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 338, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 312, in execute\r\n    django.setup()\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/django/__init__.py\", line 18, in setup\r\n    apps.populate(settings.INSTALLED_APPS)\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/django/apps/registry.py\", line 115, in populate\r\n    app_config.ready()\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/sequere/apps.py\", line 10, in ready\r\n    self.module.autodiscover()\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/sequere/registry.py\", line 117, in autodiscover\r\n    _autodiscover(registry)\r\n  File \"/virtual_envs/spv_env/local/lib/python2.7/site-packages/sequere/registry.py\", line 95, in _autodiscover\r\n    mod = import_module(app)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\nImportError: No module named SimpleAdminConfig\r\n```\r\n\r\nThis is caused by sequere _autodiscover trying to load module from INSTALLED_APPS\r\n\r\n```\r\ndef _autodiscover(registry):\r\n    import copy\r\n\r\n    from django.conf import settings\r\n    from django.utils.module_loading import module_has_submodule\r\n\r\n    try:\r\n        from importlib import import_module\r\n    except ImportError:\r\n        from django.utils.importlib import import_module  # noqa\r\n\r\n    for app in settings.INSTALLED_APPS:\r\n        mod = import_module(app)\r\n```\r\n\r\nThis will fail when dotted AppConfig path used in INSTALLED_APPS.\r\n\r\nDjango Admin autodiscover uses apps.get_app_configs() instead:\r\n\r\n```\r\nfor app_config in apps.get_app_configs():\r\n```\r\n\r\nI will try to fix and hopefully a PR will follow.."}}