{ "info": { "author": "Iacopo Spalletti", "author_email": "i.spalletti@nephila.it", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===================\ndjangocms-rest-view\n===================\n\n.. image:: https://img.shields.io/pypi/v/djangocms-rest-view.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-rest-view\n :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/dm/djangocms-rest-view.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-rest-view\n :alt: Monthly downloads\n\n.. image:: https://img.shields.io/pypi/pyversions/djangocms-rest-view.svg?style=flat-square\n :target: https://pypi.python.org/pypi/djangocms-rest-view\n :alt: Python versions\n\n.. image:: https://img.shields.io/travis/nephila/djangocms-rest-view.svg?style=flat-square\n :target: https://travis-ci.org/nephila/djangocms-rest-view\n :alt: Latest Travis CI build status\n\n.. image:: https://img.shields.io/coveralls/nephila/djangocms-rest-view/master.svg?style=flat-square\n :target: https://coveralls.io/r/nephila/djangocms-rest-view?branch=master\n :alt: Test coverage\n\n.. image:: https://img.shields.io/codecov/c/github/nephila/djangocms-rest-view/develop.svg?style=flat-square\n :target: https://codecov.io/github/nephila/djangocms-rest-view\n :alt: Test coverage\n\n.. image:: https://codeclimate.com/github/nephila/djangocms-rest-view/badges/gpa.svg?style=flat-square\n :target: https://codeclimate.com/github/nephila/djangocms-rest-view\n :alt: Code Climate\n\nAn application to load django CMS pages in a client application.\n\ndjangocms-rest-view uses Django REST framework to serve django CMS pages through a REST API\n\nEditing must still be done the \"traditional\" way\n\n************\nInstallation\n************\n\n* pip install djangocms-rest-view\n* Edit ``INSTALLED_APPS``::\n\n INSTALLED_APPS = [\n ...\n 'rest_framework',\n 'djangocms_rest_view',\n ...\n ]\n\n* Edit ``urls.py``::\n\n urlpatterns = [\n ...\n url(r'^api/', include('djangocms_rest_view.urls')),\n ...\n ]\n\n* That's all!\n\nThe REST view of the pages will be available at http://example.com/api/\n\n*************\nSample client\n*************\n\nA sample Angular JS client is provided within the project.\n\nTo start exploring djangocms-rest view, you can install it and browse the website:\n\n* Edit ``INSTALLED_APPS``::\n\n INSTALLED_APPS = [\n ...\n 'djangocms_rest_view.client',\n ...\n ]\n\n* Edit ``urls.py``::\n\n urlpatterns = [\n ...\n url(r'^rest/', include('djangocms_rest_view.client.urls')),\n ...\n ]\n\nthe Angular client will be available at http://example.com/rest/\n\n* Install dependencies according to the application bower.json: https://gitix.iast.it/opensource/djangocms-rest-view/blob/master/bower.json\n\nexample:\n\n* Copy dependencies in project ``bower.json``\n* run bower::\n\n bower install\n\nCustomize\n---------\n\nThe sample client uses a dedicated base page to load all the default styles etc needed to render\nyour content.\nTemplate is in ``rest/base.html`` copy it from ``djangocms_rest_view/client/templates/rest/base.html``\nand edit it according your needs.\n\nTemplates\n---------\n\nEach django CMS has a defined template to render.\n\nYou can customize the template the AngularJS client will use to render the page:\n\n* create a ``partial`` directory in the ``static`` directory\n* create ``html`` files for each page template\n* define the content of the rest-page template to render the placeholders and page title::\n\n
\n

\n

\n
\n\n ``content_page`` is the page serialization in the angular scope and contains the full serialization\n as visible at ``http://example.com/api/pages/``; thus ``content_page.placeholders.content``\n contains the rendered HTML for the ``content`` placeholder.\n\n\n*******\nCredits\n*******\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* cookiecutter-djangopackage-helper_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _cookiecutter-djangopackage-helper: https://github.com/nephila/cookiecutter-djangopackage-helper\n\n\n\n\n=======\nHistory\n=======\n\n******************\n0.1.9 (2016-09-25)\n******************\n\n* Fixed compatibility with django CMS 3.4\n\n******************\n0.1.8 (2016-09-10)\n******************\n\n* First public \"#PyConUK\" release\n\n******************\n0.1.0 (2016-02-01)\n******************\n\n* Internal release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nephila/djangocms-rest-view", "keywords": "djangocms-rest-view", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "djangocms-rest-view", "package_url": "https://pypi.org/project/djangocms-rest-view/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djangocms-rest-view/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nephila/djangocms-rest-view" }, "release_url": "https://pypi.org/project/djangocms-rest-view/0.1.9/", "requires_dist": null, "requires_python": null, "summary": "DRF View for django CMS", "version": "0.1.9" }, "last_serial": 2362122, "releases": { "0.1.3": [], "0.1.6": [ { "comment_text": "", "digests": { "md5": "fe221781434e84c7d719a19816c92b25", "sha256": "7e8087d13d8faaa051848b69b050db7c38fc8f6fb71b7d30e2dd2ae32fa5115b" }, "downloads": -1, "filename": "djangocms_rest_view-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fe221781434e84c7d719a19816c92b25", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 17772, "upload_time": "2016-07-29T09:57:56", "url": "https://files.pythonhosted.org/packages/fb/e0/579e68dfa85447ae036adacdbb0ae37d0cbb36823e916271aa4aab785725/djangocms_rest_view-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d1dac251137f5e6a1a954c5478d741b", "sha256": "9255d0fd69adff2ed7b9b3db48f8bf4a434a6c92ff441aa7d7aa9bbf74f519e1" }, "downloads": -1, "filename": "djangocms-rest-view-0.1.6.tar.gz", "has_sig": false, "md5_digest": "3d1dac251137f5e6a1a954c5478d741b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13929, "upload_time": "2016-07-29T09:57:53", "url": "https://files.pythonhosted.org/packages/f5/34/58836b3283c0e9c0ebf22fd33a9dcceb79e50c462d19561fa8c65186f215/djangocms-rest-view-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "6ef5333529b9338b946782ca52931c24", "sha256": "b4252b38cb8f89967d3c75fae51f2aa3eabc17058e279b504ce15b20ff599b9a" }, "downloads": -1, "filename": "djangocms_rest_view-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6ef5333529b9338b946782ca52931c24", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 17793, "upload_time": "2016-08-05T10:51:20", "url": "https://files.pythonhosted.org/packages/57/2c/6a109847192191dd152f5a2f7d781aec881776eb0549935f5f858b6f38ca/djangocms_rest_view-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f97fc0f11bdc22dc0db12c889aff668", "sha256": "5e99a8fac203e8a7c6809ae49f8a5653536a03dc464920e7bbfb42a58d7289cc" }, "downloads": -1, "filename": "djangocms-rest-view-0.1.7.tar.gz", "has_sig": false, "md5_digest": "5f97fc0f11bdc22dc0db12c889aff668", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13960, "upload_time": "2016-08-05T10:51:17", "url": "https://files.pythonhosted.org/packages/66/e7/b289acfd6f44c01c778731cfd32476e52e8694806c6c8df5cde115300703/djangocms-rest-view-0.1.7.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "49ffe3a388f1e3e61baffa738fb3f2e4", "sha256": "08088ee987ff2d2816c30611a24ffdbd756bd825861abcc416b11168eed0592b" }, "downloads": -1, "filename": "djangocms_rest_view-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "49ffe3a388f1e3e61baffa738fb3f2e4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18461, "upload_time": "2016-09-25T08:31:31", "url": "https://files.pythonhosted.org/packages/73/e5/db9205f03db43a5058fef4faacfed2fda5251eb726d8ddda7b1dd1395fb0/djangocms_rest_view-0.1.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccae326c3fb041d4a46651f46065ea19", "sha256": "53b64c1601050b3eba7a34709a0c0b1e6c55c1b594c8aa4492b72d84e873fcbd" }, "downloads": -1, "filename": "djangocms-rest-view-0.1.9.tar.gz", "has_sig": false, "md5_digest": "ccae326c3fb041d4a46651f46065ea19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14833, "upload_time": "2016-09-25T08:31:27", "url": "https://files.pythonhosted.org/packages/4d/59/6556ce8d81a48e4480a779edae36e5a88b4c8b66350c70621a138fa2146a/djangocms-rest-view-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49ffe3a388f1e3e61baffa738fb3f2e4", "sha256": "08088ee987ff2d2816c30611a24ffdbd756bd825861abcc416b11168eed0592b" }, "downloads": -1, "filename": "djangocms_rest_view-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "49ffe3a388f1e3e61baffa738fb3f2e4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18461, "upload_time": "2016-09-25T08:31:31", "url": "https://files.pythonhosted.org/packages/73/e5/db9205f03db43a5058fef4faacfed2fda5251eb726d8ddda7b1dd1395fb0/djangocms_rest_view-0.1.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ccae326c3fb041d4a46651f46065ea19", "sha256": "53b64c1601050b3eba7a34709a0c0b1e6c55c1b594c8aa4492b72d84e873fcbd" }, "downloads": -1, "filename": "djangocms-rest-view-0.1.9.tar.gz", "has_sig": false, "md5_digest": "ccae326c3fb041d4a46651f46065ea19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14833, "upload_time": "2016-09-25T08:31:27", "url": "https://files.pythonhosted.org/packages/4d/59/6556ce8d81a48e4480a779edae36e5a88b4c8b66350c70621a138fa2146a/djangocms-rest-view-0.1.9.tar.gz" } ] }