Jeff Anderson wrote:
> Does anyone else use django for a <insert application here> framework?
> 
> Jeff Anderson
> 

Django is the back end for my home multimedia system (-:

The web interface is nice, but during initial design I have simple 
scripts like the following which plays a random 3 songs from each artist 
in the database.

from audio.models import Artist, Track

while 1:
     for artist in Artist.objects.order_by('?'):
         for track in artist.track_set.all().order_by('?')[:3]:
             try:
                 os.system("ogg123 '%s'" % track.fullname())
             except:
                 sys.stderr.write("Exception occurred for track %s.\n" % 
track)


Django is still Python and it is quite powerful for that reason.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to