Embed Videos for Wagtail CMS.
Project description
ABANDONED, BUT STILL SUPPORT Wagtail >= 2.2 Django >= 2.0 <= 3.1
With the introduction of Embedded Content in wagtail 1.12 https://docs.wagtail.io/en/v1.12.6/releases/1.12.html#improved-embed-configuration, this package will no longer be needed in new projects. It`s for some old projects, that still use this package.
WAGTAIL EMBED VIDEOS
Simple app that works similar to wagtailimages, but for embedding YouTube and Vimeo videos and music from SoundCloud. It's an integration of django-embed-video
WARNING
With recent changes to keep up with Wagtail current versions, we do not support versions < 2.2!
Latest version only suports django >= 2.0 and wagtail >= 2.2
Quick start
-
Add "embed_video" and "wagtail_embed_videos" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'embed_video', 'wagtail_embed_videos', ... )
-
Run
python manage.py makemigrations
to create the migration for wagtail_embed_videos models -
Run
python manage.py migrate
to create the models of wagtail_embed_videos app -
Using wagtail_embed_videos:
from wagtail_embed_videos.edit_handlers import EmbedVideoChooserPanel class VideoBasedModel(models.Model): video = models.ForeignKey( 'wagtail_embed_videos.EmbedVideo', verbose_name="Video", null=True, blank=True, on_delete=models.SET_NULL, related_name='+' ) ... content_panels = [EmbedVideoChooserPanel('video')] # maybe in some older versions of Wagtail you need replace 'content_panels' with 'panels' # accessing the EmbedVideoField() in the model 'wagtail_embed_videos.EmbedVideo' # this is the field used for storing the url of the embed video video_based_model_instanse.video.url # accessing the thumbnail image in the model 'wagtailimages' # this is a foreign key to model Image video_based_model_instanse.video.thumbnail
-
For render your video in a template put
{% load embed_video_tags%}
for load template tags and put this code where you want render your video:```html {% video VideoBasedModel.video.url as video %} {% video video 'small' %} {% endvideo %} ```
-
Check django-embed-video for more documentation
Release Notes
v0.4.3
- Wagtail version >= 2.2 supported up to version == 2.11.3;
- Django version >= 3.0 supported (Django >= 3.1 was not tested);
- Fix for modal workflow change introduced in Wagtail 2.2
v0.4.1
- Wagtail version >= 2.0 supported;
- Django version >= 2.0 supported;
- Dropped support for Wagtail < 2.0;
v0.3.0
- Changed the structure of "AbstractEmbedVideo", because "TagSearchable" is not used anymore;
v0.2.5
- This is the last version compatible with Wagtail <= 1.6, because TagSearchable was deprecated and then removed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wagtail-embedvideos3-0.4.3.tar.gz
.
File metadata
- Download URL: wagtail-embedvideos3-0.4.3.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dca5625b4596929dcf0e4bbcb79a1478af97b1cc7d92ad3dae952fa4d8eab69 |
|
MD5 | 74df4d0810fed6b1a6629a173cbf70a3 |
|
BLAKE2b-256 | 463adc6be990ceabfcb27e2728f50aaf9841edabe4d9c66378b0a575a604aa38 |
File details
Details for the file wagtail_embedvideos3-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: wagtail_embedvideos3-0.4.3-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9048b349bd5c8ad90cb714a710f68ee1d70a914efd461e90975b4b25b76acaf8 |
|
MD5 | 71c318a2578600ac93750caf8346f9d3 |
|
BLAKE2b-256 | c315d9b198b0d679696f07207d5f823ff9079275ff2bd43c0d3be6ce47ecbe3d |