Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Mezzanine framework - won't let me embed videos to blog post

I can't get Mezzanine Framework for Django to accept embedding videos into my blog posts. I tried using the video tag of the rich text editor, tried editing the html code and inserting the iframe YouTube provides me, but with no success. Once I hit save, Mezzanine strips the code right out, like it's never been there before.

I googled a lot and stumbled upon this article from the documentation which says:

Setting the filtering level to no filtering, will disable all filtering, and allow any code to be entered by staff members, including script tags.

Choices: High: 1, Low (allows video, iframe, Flash, etc): 2, No filtering: 3

Then I went on and updated my settings.py and added the variable RICHTEXT_FILTER_LEVEL=3 (no filtering). Restarted Apache and again, without success.

You guys are my last resort.

like image 762
aldux Avatar asked Jan 12 '14 19:01

aldux


1 Answers

It actually needs to be changed in the admin. Log in to your admin, then in the top left hover over 'Site', then click on 'Settings'. Scroll down and you should see a setting called 'Rich text filter level'. Change this setting to low and then save. You should be able to embed your video now.

like image 137
reu Avatar answered Sep 22 '22 15:09

reu