Sorted. I got owned by regex :-/
In urls.py, it should be:
url(r'^watch/(?P[\w{}.-]{1,40})/$', 'find_music.views.watch',
name='watch'),
(see
http://stackoverflow.com/questions/15951948/django-url-for-40-characters-alphanumeric
)
Thanks.
On Sat, Aug 10, 2013 at 10:36 PM, Sithembewena Lloyd Dub
P.S: The view looks like the following:
def watch(request, video_id):
return HttpResponse("This is the watch page for %s") % video_id
On Sat, Aug 10, 2013 at 10:31 PM, Sithembewena Lloyd Dube wrote:
> Hi,
>
> I am using the YouTube API to fetch video data and display it on a web
> page. As par
P.S: The view looks like the following:
def watch(request, video_id):
return HttpResponse("This is the watch page for ...") % video_id
On Sat, Aug 10, 2013 at 10:31 PM, Sithembewena Lloyd Dube wrote:
> Hi,
>
> I am using the YouTube API to fetch video data and display it on a web
> page. As pa
3 matches
Mail list logo