yeah i thing so using django 1.9 help me pls

Τη Παρασκευή, 15 Ιανουαρίου 2016 - 8:25:14 μ.μ. UTC+2, ο χρήστης Xristos 
Xristoou έγραψε:
>
>
> 0down votefavorite 
> <http://stackoverflow.com/questions/34780182/django-embed-video-error-unresolved-tag-video#>
>
> i want to create a video from youtube url in the django using embed-video
> 1.step install embed-video
>
> pip install django-embed-video
>
>
>    1. step
>
> Add embed_video to INSTALLED_APPS in your Django settings.
>
> TEMPLATE_CONTEXT_PROCESSORS = (...'django.core.context_processors.request',)
>
> 3.step my model.py
>
> from django.db import modelsfrom embed_video.fields import EmbedVideoField
> class Item(models.Model):
>     video = EmbedVideoField()  # same like models.URLField()
>
> 4.step admin .py
>
> class MyModelAdmin(AdminVideoMixin, admin.ModelAdmin):
>     pass
>
> admin.site.register(MyModelAdmin)
>
> 5.step html tags
>
> {% load embed_video_tags %}
> the video tag:{% video item.video as my_video %}
>   URL: {{ my_video.url }}
>   Thumbnail: {{ my_video.thumbnail }}
>   Backend: {{ my_video.backend }}
>
>   {% video my_video "large" %}{% endvideo %}
>
> in the 5 step show me error Unresolved tag 'video'
>
> why have error ? i follow the docs embed-video
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/44ecce45-b2fe-4fd6-bb6c-a0d8eb20ee1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to