Skip to content

Commit

Permalink
Fixes for hawthorn
Browse files Browse the repository at this point in the history
  • Loading branch information
maximst committed Nov 22, 2018
1 parent 555f7ba commit 03ec58b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def package_data(pkg, roots):
'git+https://github.com/edx/[email protected]#egg=xblock-utils==1.0.5',
],
install_requires=[
'pycaption>=0.7.1,<1.0', # The latest Python 2.7 compatible version
'pycaption>=0.7.1,<=1.0.1', # The latest Python 2.7 compatible version
'requests>=2.9.1,<3.0.0',
'babelfish>=0.5.5,<0.6.0',
'XBlock>=0.4.10,<2.0.0',
'xblock-utils>=1.0.2,<=1.0.5',
'xblock-utils>=1.0.2,<=1.1.1'
],
entry_points={
'xblock.v1': [
Expand Down
4 changes: 3 additions & 1 deletion video_xblock/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def render_template(template_name, **context):
Returns: django.utils.safestring.SafeText
"""
template_dirs = [os.path.join(os.path.dirname(__file__), 'static/html')]
engine = Engine(dirs=template_dirs, debug=True)
engine = Engine.get_default()
engine.dirs = template_dirs
engine.debug = True
html = engine.get_template(template_name)

return html_parser.unescape(
Expand Down

0 comments on commit 03ec58b

Please sign in to comment.