diff --git a/rest_framework/apps.py b/rest_framework/apps.py index 8f53af005..39cd350e5 100644 --- a/rest_framework/apps.py +++ b/rest_framework/apps.py @@ -2,8 +2,6 @@ from django.apps import AppConfig from django.conf import settings from django.utils.translation import ugettext_lazy as _ -from rest_framework.compat import importlib - class RestFrameworkConfig(AppConfig): name = 'rest_framework' @@ -15,6 +13,7 @@ class RestFrameworkConfig(AppConfig): This lets us evaluate all of the @router.route('...') calls. """ + from rest_framework.compat import importlib for app in settings.INSTALLED_APPS: for mod_name in ['api']: try: