On Apr 9, 4:59 pm, "[email protected]" <[email protected]> wrote:
> I have been working on an question/answer app that embeds a video
> along with the question.  If the user answers the question correctly,
> then the app redirects to the next question/video.  Would the best
> practice be to embed the video using a template tag (videoplayer.py,
> for example), or to use a view ?  Thank you in advance!
> Lars

Hi Lars;

The best place to start is definately in the template itself. Get the
video plced there and use the database to help you out there. After
that if you find yourself writing the same boiler plate flash embed
code all the time, I would look into a template tag or even adding a
method to your model to place that code.

If you are writing your own template tag make sure to check out the
inclusion tag it will make your life much easier.

Hope that helps, Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to