mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Improve README
This commit is contained in:
parent
572d321f80
commit
1dbc414535
1 changed files with 13 additions and 2 deletions
15
README.rst
15
README.rst
|
|
@ -37,8 +37,17 @@ Quick start
|
|||
|
||||
#. Add ``embed_video`` to ``INSTALLED_APPS`` in your Django settings.
|
||||
|
||||
#. If you want to detect HTTP/S in template tags, you have to set ``request``
|
||||
context processor in ``settings.TEMPLATE_CONTEXT_PROCESSORS``:
|
||||
|
||||
#. Use template tags:
|
||||
::
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
...
|
||||
'django.core.context_processors.request',
|
||||
)
|
||||
|
||||
#. Usage of template tags:
|
||||
|
||||
::
|
||||
|
||||
|
|
@ -49,12 +58,14 @@ Quick start
|
|||
URL: {{ my_video.url }}
|
||||
Thumbnail: {{ my_video.thumbnail }}
|
||||
Backend: {{ my_video.backend }}
|
||||
|
||||
{% vide my_video "large" %}
|
||||
{% endvideo %}
|
||||
|
||||
Or embed shortcut:
|
||||
{% video my_video '800x600' %}
|
||||
|
||||
#. Use model fields
|
||||
#. Usage of model fields
|
||||
|
||||
::
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue