{ "info": { "author": "Dave Hall", "author_email": "dave@etianen.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "django-cross-origin\n===================\n\n**django-cross-origin** is a Django app enabling cross-origin resource sharing in views.\n\n\nFeatures\n--------\n\n- Enable CORS on Django class-based generic views with a simple mixin.\n- Full customization of all CORS headers via accessor override.\n\n\nInstallation\n------------\n\n1. Checkout the latest django-cross-origin release and copy or symlink the\n ``cross_origin`` directory into your ``PYTHONPATH``. If using pip, run \n ``pip install django-cross-origin``.\n2. Add ``'cross_origin'`` to your ``INSTALLED_APPS`` setting.\n\n\nUsage\n-----\n\nTo enable CORS on a Django class-based view, simply mixin the `cross_origin.views.AccessControlMixin`\nto your view:\n\n::\n\n from django.views import generic\n from cross_origin.views import AccessControlMixin\n\n class YourView(AccessControlMixin, generic.TemplateView):\n\n \"\"\"Your view code here!\"\"\"\n\n\nAll CORS response headers can be customized by overriding accessor methods on your view. For a complete\nlist of available accessors, see the source code for `AccessControlMixin `_.\n\n\nMore information\n----------------\n\nThe django-cross-origin project was developed at `Mohawk `_, and\nis released as Open Source under the MIT license.\n\nYou can get the code from the `django-cross-origin project site `_.\n\n\nContributors\n------------\n\nThe following people were involved in the development of this project.\n\n- Dave Hall - `Blog `_ | `GitHub `_ | `Twitter `_ | `Google Profile `_", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mohawkhq/django-cross-origin", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-cross-origin", "package_url": "https://pypi.org/project/django-cross-origin/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cross-origin/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/mohawkhq/django-cross-origin" }, "release_url": "https://pypi.org/project/django-cross-origin/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "A Django app enabling cross-origin resource sharing in views.", "version": "0.9.0" }, "last_serial": 923724, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "989605a1313bc501b20057007f3bd3cc", "sha256": "1a4beb3b514da787bc424937bc18918f7e2fe8c80b26c4da194d809bb4f06fcc" }, "downloads": -1, "filename": "django-cross-origin-0.9.0.tar.gz", "has_sig": false, "md5_digest": "989605a1313bc501b20057007f3bd3cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4022, "upload_time": "2013-11-19T15:36:46", "url": "https://files.pythonhosted.org/packages/f3/7f/fb4d9985a44fae37f72720c764387991fe5011d5275fcf876416249429b6/django-cross-origin-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "989605a1313bc501b20057007f3bd3cc", "sha256": "1a4beb3b514da787bc424937bc18918f7e2fe8c80b26c4da194d809bb4f06fcc" }, "downloads": -1, "filename": "django-cross-origin-0.9.0.tar.gz", "has_sig": false, "md5_digest": "989605a1313bc501b20057007f3bd3cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4022, "upload_time": "2013-11-19T15:36:46", "url": "https://files.pythonhosted.org/packages/f3/7f/fb4d9985a44fae37f72720c764387991fe5011d5275fcf876416249429b6/django-cross-origin-0.9.0.tar.gz" } ] }