django-embed-video/docs/installation.rst

44 lines
869 B
ReStructuredText
Raw Normal View History

2013-08-22 08:17:59 +00:00
Installation & Setup
==============================================
Installation
##############################################
2014-01-10 18:51:14 +00:00
The simpliest way is to use pip to install package:
2013-08-22 08:17:59 +00:00
.. code-block:: bash
2013-08-22 08:17:59 +00:00
pip install django-embed-video
If you want latest version, you may use Git. It is fresh, but unstable.
.. code-block:: bash
2013-08-22 08:17:59 +00:00
pip install git+https://github.com/yetty/django-embed-video.git
Setup
##############################################
Add ``embed_video`` to :py:data:`~django.settings.INSTALLED_APPS` in your Django
settings.
.. code-block:: python
2013-08-22 08:17:59 +00:00
INSTALLED_APPS = (
...
'embed_video',
)
2014-01-10 18:51:14 +00:00
To detect HTTP/S you must use :py:class:`~django.core.context_processors.request`
2013-12-22 15:40:40 +00:00
context processor:
.. code-block:: python
TEMPLATE_CONTEXT_PROCESSORS = (
...
'django.core.context_processors.request',
)