Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikedkelly opened this issue Aug 16, 2018 · 4 comments
Open

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

mikedkelly opened this issue Aug 16, 2018 · 4 comments

Comments

@mikedkelly
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

@vmluan
Copy link

vmluan commented May 9, 2019

@ bryanlandia: Any new update on this issue?

@albluqmun
Copy link

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'})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants