{ "info": { "author": "Texas Tribune & Bay Citizen", "author_email": "dev@armstrongcms.org", "bugtrack_url": null, "classifiers": [], "description": "armstrong.templates.paywayll\n============================\nProvides a basic example of how to create a paywall inside Armstrong\n\nThis template shows a working version of paywall code. The paywall is declared\nin ``urls/defaults.py``.\n\nUsage\n-----\nYou can use this to initial a demo Armstrong project with a paywall. The paywall\nis defined in ``urls/defaults.py``. By default, the ``SubscriptionPaywall``\nreturns a 304 when access is denied, but it has been overriden to render the\n``permission_denied.html`` template instead. The only view that needs to be\nprotected is the ``ArticleDetailView``.\n\nThe third article on the front page, 'Help Wanted' is protected. When not\nlogged in, the ``permission_denied.html`` will be rendered, but when logged in as a\nstaff member or as the user with the username ``user`` and password of ``user`` you\nwill see the normal ``article.html`` template.\n\n\nYou can install this demo project template via the ``armstrong`` binary that\nships with `armstrong.cli`_ like this:\n\n::\n\n $ armstrong init --template=paywall\n\nYou must install this package in order to be able to use ``armstrong init``.\nYou can also use it via Django's ``django-admin.py`` as of Django 1.4. Create\na clone of the ``armstrong.templates.paywall`` repository and run this command\n(adjusting the paths for your machine):\n\n::\n\n $ django-admin.py startproject --template=/path/to/armstrong.templates.paywall/project_template\n\n.. _armstrong.cli: https://github.com/armstrong/armstrong.cli\n\n\nInstallation & Configuration\n----------------------------\nYou can install the latest release of ``armstrong.templates.paywall`` using `pip`_:\n\n::\n\n pip install armstrong.templates.paywall\n\nNo configuration is required for this component.\n\n.. _pip: http://www.pip-installer.org/\n\n\nContributing\n------------\n\n* Create something awesome -- make the code better, add some functionality,\n whatever (this is the hardest part).\n* `Fork it`_\n* Create a topic branch to house your changes\n* Get all of your commits in the new topic branch\n* Submit a `pull request`_\n\n.. _pull request: http://help.github.com/pull-requests/\n.. _Fork it: http://help.github.com/forking/\n\n\nState of Project\n----------------\nArmstrong is an open-source news platform that is freely available to any\norganization. It is the result of a collaboration between the `Texas Tribune`_\nand `Bay Citizen`_, and a grant from the `John S. and James L. Knight\nFoundation`_.\n\nTo follow development, be sure to join the `Google Group`_.\n\n``armstrong.templates.paywall`` is part of the `Armstrong`_ project. You're\nprobably looking for that.\n\n.. _Texas Tribune: http://www.texastribune.org/\n.. _Bay Citizen: http://www.baycitizen.org/\n.. _John S. and James L. Knight Foundation: http://www.knightfoundation.org/\n.. _Google Group: http://groups.google.com/group/armstrongcms\n.. _Armstrong: http://www.armstrongcms.org/\n\n\nLicense\n-------\nCopyright 2011-2012 Bay Citizen and Texas Tribune\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "armstrong.templates.paywall", "package_url": "https://pypi.org/project/armstrong.templates.paywall/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/armstrong.templates.paywall/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/armstrong.templates.paywall/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Provides a basic example of a paywall inside Armstrong", "version": "1.0.0" }, "last_serial": 828784, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b9b3d81cf58db2e12cf8f1462b9696bc", "sha256": "e5afcd0cf1d205a0d71bd230111a1fc51d934ae3e97faf762fa3f77a4d378dd7" }, "downloads": -1, "filename": "armstrong.templates.paywall-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b9b3d81cf58db2e12cf8f1462b9696bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 141060, "upload_time": "2012-04-30T23:21:36", "url": "https://files.pythonhosted.org/packages/04/44/231648feb913594e850c5096babf9b2816824ccf1969170d558a701ee4a9/armstrong.templates.paywall-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9b3d81cf58db2e12cf8f1462b9696bc", "sha256": "e5afcd0cf1d205a0d71bd230111a1fc51d934ae3e97faf762fa3f77a4d378dd7" }, "downloads": -1, "filename": "armstrong.templates.paywall-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b9b3d81cf58db2e12cf8f1462b9696bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 141060, "upload_time": "2012-04-30T23:21:36", "url": "https://files.pythonhosted.org/packages/04/44/231648feb913594e850c5096babf9b2816824ccf1969170d558a701ee4a9/armstrong.templates.paywall-1.0.0.tar.gz" } ] }