Commit 84db0443 by Usman Khalid

Merge pull request #4 from edx/django1.8/upgrade

Fixes for Django 1.8
parents bbbc7087 6889eb0a
...@@ -20,6 +20,7 @@ try: ...@@ -20,6 +20,7 @@ try:
from importlib import import_module from importlib import import_module
except ImportError: except ImportError:
from django.utils.importlib import import_module from django.utils.importlib import import_module
from django.apps import apps as django_apps
from django.conf import settings from django.conf import settings
...@@ -53,7 +54,7 @@ def _filter_configured_avoids(module): ...@@ -53,7 +54,7 @@ def _filter_configured_avoids(module):
def get_apps(): def get_apps():
return map(import_module, settings.INSTALLED_APPS) return [app_cfg.module for app_cfg in django_apps.get_app_configs()]
def harvest_lettuces(only_the_apps=None, avoid_apps=None, path="features"): def harvest_lettuces(only_the_apps=None, avoid_apps=None, path="features"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment