comparison podcast/views.py @ 679:89b240fe9297

For Django 1.5.2: import json; django.utils.simplejson is deprecated.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Aug 2013 20:14:33 -0500
parents ee87ea74d46b
children e932f2ecd4a7
comparison
equal deleted inserted replaced
678:38a198ea8c61 679:89b240fe9297
1 """ 1 """
2 Views for the podcast application. 2 Views for the podcast application.
3 3
4 """ 4 """
5 import json
5 import os.path 6 import os.path
6 from urlparse import urlparse 7 from urlparse import urlparse
7 8
8 from django.shortcuts import render_to_response 9 from django.shortcuts import render_to_response
9 from django.template import RequestContext 10 from django.template import RequestContext
10 from django.shortcuts import get_object_or_404 11 from django.shortcuts import get_object_or_404
11 import django.utils.simplejson as json
12 12
13 from podcast.models import Channel 13 from podcast.models import Channel
14 from podcast.models import Item 14 from podcast.models import Item
15 15
16 16