Tuesday, January 26, 2016

stupid error embed video

hello i have use the embed video tools to using dynamic youtube urls for trailers but i have a stupid error.
if i import on admin in the field video urls one video url from youtube and i see url for that is correct i save it in my post,
but on my site if i run the server show me else video some video for all my post but i not have that video.
all my post they have some url video not this i define before

models.py

video = EmbedVideoField()

template tag

<object style="height: 390px; width: 640px"><param name="movie" value="{{ post.video.url }}"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/v1gTI4BOPUw?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="550" height="300"></object>

# post.video.url because in the post details

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/1eac21b7-9a26-495f-b91b-5a295d7c87d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment