My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Thanks for downloading django-oembed!

To install it, first use subversion to check out the source code:

svn checkout http://django-oembed.googlecode.com/svn/trunk/ django-oembed

Now, link the included ``oembed`` directory to your pythonpath. On Debian
variants, it would look something like this.

sudo ln -s `pwd`/django-oembed/oembed /usr/lib/python2.5/site-packages/

To use it with a Django installation, first place 'oembed' in the INSTALLED_APPS
tuple of your settings.py file like so:

INSTALLED_APPS = (
# ...
'oembed',
)

Then syncdb, and here is sample usage in a template.

{% load oembed_tags %}
{% oembed %}
{% for link in links %}{{ link.href }}{% endfor %}
{% endoembed %}

In the previous example, any link.href would be replaced with an OEmbed-fetched
embed.

The templatetag takes one optional second argument, which you can figure out by
looking at this usage:

{% oembed 320x240 %}

Note that this application requires Python 2.3 or later, and Django later than
0.96. You can obtain Python from http://www.python.org/ and Django from
http://www.djangoproject.com/.
Show details Hide details

Change log

r9 by floguy on May 26, 2008   Diff
Added docstrings and inline documentation,
and some standard open source files.
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1158 bytes, 37 lines
Hosted by Google Code