appsembler / xblock-video

Universal Video XBlock with pluggable backend for many video hosting providers
GNU General Public License v3.0
18 stars 50 forks source link

Cannot create or edit video_xblock units in Hawthorn.1 #28

Open mikedkelly opened 6 years ago

mikedkelly commented 6 years ago

I was able to install video_xblock in Hawthorn.1 after installing xblock-utils. I can import a course containing video_xblock units, but I cannot edit or create new units. I get the following error: Error: 'i18n' is not a registered tag library. Must be one of:

bryanlandia commented 5 years ago

Thanks for the info, @mikedkelly ! I haven't yet tested the XBlock on Hawthorn but it's time to. Looks like your comment was cut off, though—would you be able to try including the error message again?

mikedkelly commented 5 years ago

@brtanlandia - "Error: 'i18n' is not a registered tag library. Must be one of:" is the entire message that is returned in the dialog.

vmluan commented 5 years ago

@ bryanlandia: Any new update on this issue?

albluqmun commented 5 years ago

Hi,

The problem is that the django template engine doesn't load the templatetag or library 'i18n'. We can solve this problem adding the library when we instance the Engine class in the utils.py:

# video_xblock/utils.py(55)render_template()
engine = Engine(dirs=template_dirs, debug=True, libraries={'i18n':'django.templatetags.i18n'})