Commit 2a95fe62 by Sarina Canelake

Merge pull request #7101 from openfun/fun/xblock-authoring-fix-settings-import

Fixed an import issue with django settings - in xblock authoring module.
parents 635194a9 7148af88
......@@ -4,6 +4,8 @@ Mixin class that provides authoring capabilities for XBlocks.
import logging
from django.conf import settings
from xblock.core import XBlock
from xblock.fields import XBlockMixin
from xblock.fragment import Fragment
......@@ -26,9 +28,7 @@ class AuthoringMixin(XBlockMixin):
"""
Returns the Studio URL to a static resource.
"""
# TODO: is there a cleaner way to do this?
from cms.envs.common import STATIC_URL
return STATIC_URL + relative_url
return settings.STATIC_URL + relative_url
def visibility_view(self, _context=None):
"""
......
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