معرفی شرکت ها


django-embed-0.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A simple Django app to generate embed code from youtube, twitter and slideshare.
ویژگی مقدار
سیستم عامل -
نام فایل django-embed-0.2.1
نام django-embed
نسخه کتابخانه 0.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده https://github.com/mejorandola
ایمیل نویسنده d@mejorando.la
آدرس صفحه اصلی http://mejorando.la/
آدرس اینترنتی https://pypi.org/project/django-embed/
مجوز MIT License
===== Embed ===== Embed is a Django app to generate the embed code for youtube, twitter and slideshare. Detailed documentation is in the "docs" directory. Quick start ----------- 1. Add "embed" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = ( ... 'embed', ) 2. Run `python manage.py syncdb` to create the embed cache model. 3. Import Embed class. from embed.utils import Embed 3. You can use it individually for each service or all of them. youtube = Embed.get_youtube_embed(string="Check this video https://youtu.be/THgLyTucjmk") 4. The Embed will return a string with the link replaced with the embed code. 5. If you want use the twitter functionality you have to set your twitter api keys. Embed.consumer_key = 'dummy-consumer-key' Embed.consumer_secret = 'dummy-consumer-secret' Embed.oauth_token = 'dummy-access-token' Embed.oauth_token_secret = 'dummy-access-token-secret' 6. You can set the parameters for the embed objects. Embed.config['width'] = '430' 7. If you are using MySQL you need to encode to utf-8 the "embed_code" column of the EmbedCache table in your database.


نحوه نصب


نصب پکیج whl django-embed-0.2.1:

    pip install django-embed-0.2.1.whl


نصب پکیج tar.gz django-embed-0.2.1:

    pip install django-embed-0.2.1.tar.gz