Commit a0817466 by Will Daly

Merge pull request #849 from edx/will/acceptance-test-static-files

Fix for acceptance test static file issue
parents 39bd9870 e94515df
...@@ -29,11 +29,13 @@ from xmodule.contentstore.django import _CONTENTSTORE ...@@ -29,11 +29,13 @@ from xmodule.contentstore.django import _CONTENTSTORE
# to use staticfiles. # to use staticfiles.
try: try:
import staticfiles import staticfiles
import staticfiles.handlers
except ImportError: except ImportError:
pass pass
else: else:
import sys import sys
sys.modules['django.contrib.staticfiles'] = staticfiles sys.modules['django.contrib.staticfiles'] = staticfiles
sys.modules['django.contrib.staticfiles.handlers'] = staticfiles.handlers
LOGGER = getLogger(__name__) LOGGER = getLogger(__name__)
LOGGER.info("Loading the lettuce acceptance testing terrain file...") LOGGER.info("Loading the lettuce acceptance testing terrain file...")
......
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