.. django-flashpolicies documentation master file, created by
   sphinx-quickstart on Thu Jun 25 00:21:57 2009.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

django-flashpolicies 1.3.1
==========================

This application enables simple Flash `cross-domain policies
<http://kb2.adobe.com/cps/142/tn_14213.html>`_ (which are required for
Flash content to access information across domains) for `Django
<http://www.djangoproject.com/>`_-powered sites. Cross-domain policies
are represented by `an XML file format
<http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html>`_,
and this application generates and serves the appropriate XML.

In the simplest case, you'll simply set up one URL pattern, pointing
the URL ``/crossdomain.xml`` to the view
:func:`flashpolicies.views.simple` and passing a list of domains from
which you want to allow access. For example, to allow access from
Flash content served from ``media.example.com``, you could place the
following in the root URLConf of your Django site:

.. code-block:: python

    url(r^'crossdomain.xml$',
        'flashpolicies.views.simple',
        {'domains': ['media.example.com']}),

Documentation contents
----------------------

.. toctree::
   :maxdepth: 1

   install
   views
   policies

Further reading
---------------

* `Adobe's recommendations for use of Flash cross-domain policies <http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html>`_
* `Google doctype article on Flash cross-domain policies <http://code.google.com/p/doctype/wiki/ArticleFlashSecurityCrossDomain>`_
