jazzband / django-embed-video

Django app for easy embedding YouTube and Vimeo videos and music from SoundCloud.
http://django-embed-video.rtfd.org
MIT License
383 stars 135 forks source link

Can you provide a static example for quick testing #106

Closed Schizo closed 5 years ago

Schizo commented 5 years ago

I wanted to check this project out, but I would like to see a static example to see how it works.

{% video item.video as my_video %}
URL: { "https://vimeo.com/9011932" }
Thumbnail: { "https://i.vimeocdn.com/video/43561837_100x75.webp" }
Backend: {{ my_video.backend }
{% video my_video 'small' %}
{% endvideo %}

Am I missing something here ?

Thanks

aleksihakli commented 5 years ago

Are you saying that the example above does not work or that it should be available in the docs straight away?

The code should use double {{ braces }} in the template by the way.

Schizo commented 5 years ago

I'm using it as posted above and it doesn't work for me. I had them as well with double braces as the original one and had replaced the variables with strings, but that didn't error but didn't show anything as well. So you are saying that the above code should work?

Thanks

aleksihakli commented 5 years ago

You can find examples in the example projects and tests. Please make sure you have checked out the documentation and have the application in INSTALLED_APPS :)