From 4a32f6857fa1ae86ee94d6829eefbdc249c52b1c Mon Sep 17 00:00:00 2001 From: Benjamin Dummer Date: Tue, 9 Aug 2016 03:55:32 -0400 Subject: [PATCH] Issue with newer Django versions --- rest_framework/apps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: