On Tue, May 19, 2009 at 1:42 PM, Social Network in DJango < readb...@gmail.com> wrote:
> > I put the below code to embed an mp3 file in an html page in an html > file and pointed my browser to it. It works. > > I then try > url(r'^$','django.views.generic.simple.direct_to_template', > {"template": "wimpybutton.html"}, name="home"), > > Then, http://127.0.0.1:8080/ > > I do not see the button. I view page source. The page source is > identical to the below. > > Please let me know how I can see the button and hear the music from > DJango if I already can do so in html. > > Thank you in advance, > > Jonathan > > > > > <!-- START WIMPY BUTTON: Standard HTML --> > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ > swflash.cab#version=8,0,0,0<http://download.macromedia.com/pub/shockwave/cabs/flash/%0Aswflash.cab#version=8,0,0,0>" > width="35" height="35" > id="wimpybutton288"> > <param name="movie" value="file:///Users/jtunes/peerreviewmusic/ > wimpybutton/wimpy_button.swf" /> > <param name="loop" value="false" /> > <param name="menu" value="false" /> > <param name="quality" value="high" /> > <param name="bgcolor" value="#FFFFFF" /> > <param name="flashvars" value="theFile=file%3A%2F%2F%2FUsers%2Fjtunes > %2Fpeerreviewmusic%2Fwimpybutton%2Fexample > %2Emp3&wimpyReg=&myid=wimpybutton288" /> > <embed src="file:///Users/jtunes/peerreviewmusic/wimpybutton/ > wimpy_button.swf" flashvars="theFile=file%3A%2F%2F%2FUsers%2Fjtunes > %2Fpeerreviewmusic%2Fwimpybutton%2Fexample > %2Emp3&wimpyReg=&myid=wimpybutton288" width="35" height="35" > bgcolor="#FFFFFF" loop="false" menu="false" quality="high" > name="wimpybutton288" align="middle" allowScriptAccess="sameDomain" > type="application/x-shockwave-flash" pluginspage="http:// > www.macromedia.com/go/getflashplayer" /></object> > <!-- END WIMPY BUTTON: Standard HTML --> > </body> > > > The browser probably isn't rendering it because there are no starting <html> tag, or <body> tag, which are required by the spec AFAIK. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---