===============
Leonardo Oembed
===============
Leonardo wrapper for feincms-oembed converts standard URLs from more than 200 content providers into embedded videos, images and rich article previews by letting Embedly or another OEmbed provider to the hard work.
Thanks @matthiask
.. contents::
:local:
Installation
============
.. code-block:: bash
pip install leonardo-oembed
or as leonardo bundle
.. code-block:: bash
pip install django-leonardo["oembed"]
Configuration
=============
Add ``leonardo_module_oembed`` to APPS list, in the ``local_settings.py``::
APPS = [
...
'leonardo_oembed'
...
]
Sync static
-----------
.. code-block:: bash
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py sync_all
Extends
=======
If you want to customize the Embedly_ request or use another OEmbed provider,
set ``settings.OEMBED_PROVIDER`` to a function receiving the URL and a dict
with additional arguments and returning a suitable URL which returns OEmbed
JSON on access. ``OEMBED_PROVIDER`` must either be a dotted python path or a
callable::
from feincms_oembed.providers import embedly_oembed_provider
def my_provider(url, kwargs):
kwargs['wmode'] = 'opaque'
return embedly_oembed_provider(url, kwargs)
OEMBED_PROVIDER = 'path.to.module.my_provider'
# OEMBED_PROVIDER = my_provider # The function can be used too, not only
# the dotted python path.
Read More
=========
* https://github.com/feincms/feincms-oembed
* https://github.com/django-leonardo/django-leonardo
Leonardo Oembed
===============
Leonardo wrapper for feincms-oembed converts standard URLs from more than 200 content providers into embedded videos, images and rich article previews by letting Embedly or another OEmbed provider to the hard work.
Thanks @matthiask
.. contents::
:local:
Installation
============
.. code-block:: bash
pip install leonardo-oembed
or as leonardo bundle
.. code-block:: bash
pip install django-leonardo["oembed"]
Configuration
=============
Add ``leonardo_module_oembed`` to APPS list, in the ``local_settings.py``::
APPS = [
...
'leonardo_oembed'
...
]
Sync static
-----------
.. code-block:: bash
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py sync_all
Extends
=======
If you want to customize the Embedly_ request or use another OEmbed provider,
set ``settings.OEMBED_PROVIDER`` to a function receiving the URL and a dict
with additional arguments and returning a suitable URL which returns OEmbed
JSON on access. ``OEMBED_PROVIDER`` must either be a dotted python path or a
callable::
from feincms_oembed.providers import embedly_oembed_provider
def my_provider(url, kwargs):
kwargs['wmode'] = 'opaque'
return embedly_oembed_provider(url, kwargs)
OEMBED_PROVIDER = 'path.to.module.my_provider'
# OEMBED_PROVIDER = my_provider # The function can be used too, not only
# the dotted python path.
Read More
=========
* https://github.com/feincms/feincms-oembed
* https://github.com/django-leonardo/django-leonardo
Metadata
Release files for leonardo-oembed 2016.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leonardo-oembed-2016.1.0.tar.gz | 5.0 kB | Details |
Release files / leonardo-oembed-2016.1.0.tar.gz
| Download URL | leonardo-oembed-2016.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28145920020fe3f4796c2746210a857debc749bb784db1509e9888cbbe005a4d
|
|
BLAKE2b-256 checksum How to use checksums |
230e49c001ceb80478c1125d58e4ac5aeba6704d77c3b0dce3a3b755cc1803ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |