comparison bns_website/settings/base.py @ 60:a0d3bc630ebd

For issue #8, create a videos application to randomize videos in the playlist. This commit now adds a dependency to the Google Python GData library. The admin enters a playlist URL in the admin. Then the admin uses an admin action to synchronize the playlist with YouTube. This reads the playlist title and retrieves the video list from YouTube. The view function reads all the playlist objects to get the complete list of videos, then shuffles them up. The template generates Javascript to create a YouTube player with the shuffled list. A fixture is included for convenience and for the tests. I also committed a test tool I wrote to prove out this idea in case it is useful for future enhancements or experimentation.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 14:19:00 -0600
parents ced908af601a
children
comparison
equal deleted inserted replaced
59:f8858447adda 60:a0d3bc630ebd
126 'django.contrib.admindocs', 126 'django.contrib.admindocs',
127 'core', 127 'core',
128 'bands', 128 'bands',
129 'news', 129 'news',
130 'reviews', 130 'reviews',
131 'videos',
131 ] 132 ]
132 133
133 # A sample logging configuration. The only tangible logging 134 # A sample logging configuration. The only tangible logging
134 # performed by this configuration is to send an email to 135 # performed by this configuration is to send an email to
135 # the site admins on every HTTP 500 error. 136 # the site admins on every HTTP 500 error.