{ "info": { "author": "Ryan Shaw", "author_email": "ryanshaw@unc.edu", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=========\nLicensing\n=========\n\nLicensing provides some utilities needed in order to save and\nshow licensable content. As default it provides descriptions and localizations\nof Creative Commons licenses, but any license could be added.\n\nThe characters in the ``symbols`` fields of the provided Creative Commons\nlicenses are intended to be displayed with this Creative Commons icons font:\nhttp://pfefferle.github.io/openwebicons/#cc-icons\n\nSupported Django versions\n-------------------------\nLicensing is tested against Django versions 1.8 and 1.9.\n\nQuick start\n-----------\n\n1. Install it using pip\n\n $ pip install django-licensing\n\n2. Add \"licensing\" to your ``INSTALLED_APPS`` setting like this::\n\n INSTALLED_APPS = (\n ...\n 'licensing',\n )\n\n3. Create a model that subclass ``Licensed`` (an abstract base class)\n\n.. code-block:: python\n\n from licensing.models import Licensed\n\n class Whatever(Licensed):\n pass\n\nThe model ``Whatever`` will contain a ``ForeignKey`` field named ``license``.\n\n4. Run ``python manage.py migrate`` to create the licensing models.\n\n5. Where is needed to show the symbol associated with the license you can use the tag ``show_license``:\nit uses the openweb font to render it; it's simple as\n\n.. code-block:: html\n\n {% load licensing_tags %}\n\n {% block head %}\n\n {% licensing_style %}\n\n {% endblock %}\n {% block foobar %}\n {% show_license license %}\n {% endblock %}\n\nwhere ``license`` is an instance of the ``License`` model.\n\nThe ``licensing_style`` tag simply renders a ``