django-embed-video/docs/installation.rst

44 lines
767 B
ReStructuredText
Raw Permalink Normal View History

2013-08-22 08:17:59 +00:00
Installation & Setup
2015-05-01 08:51:52 +00:00
====================
2013-08-22 08:17:59 +00:00
Installation
2015-05-01 08:51:52 +00:00
############
2013-08-22 08:17:59 +00:00
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/jazzband/django-embed-video
2013-08-22 08:17:59 +00:00
Setup
2015-05-01 08:51:52 +00:00
#####
2013-08-22 08:17:59 +00:00
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',
)