mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 22:04:48 +03:00
Issue with newer Django versions
This commit is contained in:
parent
aa36e6722f
commit
4a32f6857f
|
@ -2,8 +2,6 @@ from django.apps import AppConfig
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from rest_framework.compat import importlib
|
|
||||||
|
|
||||||
|
|
||||||
class RestFrameworkConfig(AppConfig):
|
class RestFrameworkConfig(AppConfig):
|
||||||
name = 'rest_framework'
|
name = 'rest_framework'
|
||||||
|
@ -15,6 +13,7 @@ class RestFrameworkConfig(AppConfig):
|
||||||
|
|
||||||
This lets us evaluate all of the @router.route('...') calls.
|
This lets us evaluate all of the @router.route('...') calls.
|
||||||
"""
|
"""
|
||||||
|
from rest_framework.compat import importlib
|
||||||
for app in settings.INSTALLED_APPS:
|
for app in settings.INSTALLED_APPS:
|
||||||
for mod_name in ['api']:
|
for mod_name in ['api']:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user