Mercurial > public > sg101
comparison oembed/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 | 344f7914d421 |
comparison
equal
deleted
inserted
replaced
678:38a198ea8c61 | 679:89b240fe9297 |
---|---|
1 """ | 1 """ |
2 Views for the oembed application. | 2 Views for the oembed application. |
3 | |
3 """ | 4 """ |
5 import json | |
4 import re | 6 import re |
5 import urllib2 | |
6 | 7 |
7 from django.http import HttpResponse | 8 from django.http import HttpResponse |
8 from django.http import HttpResponseBadRequest | 9 from django.http import HttpResponseBadRequest |
9 from django.http import HttpResponseForbidden | 10 from django.http import HttpResponseForbidden |
10 import django.utils.simplejson as json | |
11 from django.conf import settings | 11 from django.conf import settings |
12 | 12 |
13 from oembed.models import Provider | 13 from oembed.models import Provider |
14 from oembed.models import Oembed | 14 from oembed.models import Oembed |
15 from oembed.core import get_oembed | 15 from oembed.core import get_oembed |