Good point on the rewrite rules, hadn't thought of that simply because
someone else did our apache set up, so I'm not too familiar with that,
but that seems like a good solution.

I just thought maybe I was missing something obvious - I thought there
would be a way redirect to an html in site_media right from urls.py.
But now I realize that the whole point is that the server handles
site_media and django handles everything that's not site_media, so I
guess that would be confusing things.  I think you're right, if I want
to use django, I should just modify the camtasia html and put in in my
templates area.  And if I want the html to be in site_media, then I
should have my web server do the redirect.

Thanks for the pointers.

Margie

On Jun 5, 5:01 am, Vasil Vangelovski <vvangelov...@gmail.com> wrote:
> You can achieve this without django at all. By defining rewrite rules
> on your web server. But why don't you make your own view/template on
> the url you want that will play the desired video? You can use the
> HTML file generated by camtasia for a reference on how to write the
> template.
>
> On Sat, Jun 5, 2010 at 2:59 AM, Margie Roginski
>
> <margierogin...@yahoo.com> wrote:
> > Hi,
>
> > I am trying to serve up an mp4 video from my django app.  I've
> > generated the video
> > using a tool called Camtasia, and it creates a set of files for me
> > that all go in a single
> > directory.  I've put these down in my site_media directory with a
> > directory structure like this:
>
> >  site_media/img/help/overview_video/overview_video.html
> >                                     overview_video.mp4
> >                                     overview_video_controller.swf
> >                                     swfobject.js
> >                                     exprsesInstall.swf
>
> > If I reference overview_video.html like this, it works just fine:
>
> >  http://mysite.com/site_media/img/help/overview_video/overview_video.html
>
> > But I don't want the user to see site_media in their url.  Instead I'd
> > like them to go
> > to a nicer looking url, like this:
>
> >http://mysite.com/taskmanager/help/overview_video
>
> > So I'm trying to figure out what I put in my taskmanager app urls.py
> > in order to make it
> > handle the nicer url and then redirect to site_media/img/help/
> > overview_video/overview_video.html.
>
> > I think I should be able to do something like this:
>
> >   url(r'^help/overview_video$',    direct_to_template,
> >                 {"template": "[reference_to_site_media]/img/help/
> > overview_video/overview_video.html"})
>
> > But I can't figure out what to put in for [reference_to_site_media].
> > Could someone give me a hand?
>
> > Thanks.
>
> > Margie
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to