Remove unused imports. Push model imports down into relevant methods.

Mock out the static_replace modules in the proper location.
This commit is contained in:
John Eskew
2017-09-19 17:55:14 -04:00
parent 8b5b1eba86
commit 02f26f55ce
10 changed files with 45 additions and 24 deletions

View File

@@ -29,7 +29,6 @@ from xmodule.contentstore.django import contentstore
from xmodule.modulestore.draft_and_published import BranchSettingMixin
from xmodule.modulestore.mixed import MixedModuleStore
from xmodule.util.django import get_current_request_hostname
import xblock.reference.plugins
try:
# We may not always have the request_cache module available
@@ -245,6 +244,9 @@ def create_modulestore_instance(
"""
This will return a new instance of a modulestore given an engine and options
"""
# Import is placed here to avoid model import at project startup.
import xblock.reference.plugins
class_ = load_function(engine)
_options = {}