{ "info": { "author": "Thomas Power", "author_email": "thomaspwr@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "===================\ndjango-simple-pages\n===================\n\n|travis| |codacy| |coverage| |pypi|\n\n.. |travis| image:: https://travis-ci.org/teapow/django-simple-pages.svg?branch=master\n :target: https://travis-ci.org/teapow/django-simple-pages\n\n.. |codacy| image:: https://api.codacy.com/project/badge/Grade/9be353b72b944c788f886934fafe9742\n :target: https://www.codacy.com/app/teapow/django-simple-pages\n\n.. |coverage| image:: https://api.codacy.com/project/badge/Coverage/9be353b72b944c788f886934fafe9742\n :target: https://www.codacy.com/app/teapow/django-simple-pages\n\n.. |pypi| image:: https://badge.fury.io/py/django-simple-pages.svg\n :target: https://badge.fury.io/py/django-simple-pages\n\n\n`django-simple-pages` allows you to store HTML documents in models, which can\nbe served automatically without the need for hard-coded URL patterns.\n\nExample use cases include:\n\n* Serving a static website.\n* Handling redirects for relocated resources.\n* Verifying site ownership for Google Search Console.\n\n\nQuick-start\n===========\n\n1. Install ``pip install django-simple-pages``.\n2. Add ``simple_pages`` to ``INSTALLED_APPS``.\n3. Add ``simple_pages.middleware.PageFallbackMiddleware`` to ``MIDDLEWARE``.\n4. Run ``python manage.py migrate simple_pages``.\n\n\nUsage\n=====\n\nSimply navigate to ``/admin`` and create a new ``Page`` object. A ``Page``\nconsists of the following attributes:\n\n* **title:** The title of the page. This is rendered in the ```` tag\n if ``template_name`` is set to ``simple_pages/default.html``.\n\n* **access_url:** The URL to access this page. All URLs should start with a\n leading slash.\n\n* redirect_url: The URL to redirect to. If set, ``content`` will not be\n rendered.\n\n* enabled: When set to True, this page is active. Setting this value to\n False means that you will see a 404 if you navigate to the page's\n ``access_url``.\n\n* template_name: The path to the template used to render ``content``.\n Supported values include:\n\n * ``simple_pages/default.html``: Renders a ``<head>`` containing a\n ``<title>`` tag, and a ``<body>`` containing the page's ``content``.\n\n * ``simple_pages/raw.html``: Renders the page's ``content`` only.\n\nNote: **Bold** attributes are required.\n\n\nChangelog\n=========\n\n+----------------+-----------------------------------------------------------+\n| Version | Description |\n+================+===========================================================+\n| 0.3 | Added fade.html template. |\n+----------------+-----------------------------------------------------------+\n| 0.2.1 | Bump version to include all new documentation. |\n+----------------+-----------------------------------------------------------+\n| 0.2 | Admin detail view uses HTML code editor, rather than a |\n| | plain textarea. |\n+----------------+-----------------------------------------------------------+\n| 0.1.1 | Fixes incorrect help_text on Page.template_name. |\n+----------------+-----------------------------------------------------------+\n| 0.1 | Initial version. |\n+----------------+-----------------------------------------------------------+\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/teapow/django-simple-pages", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-simple-pages", "package_url": "https://pypi.org/project/django-simple-pages/", "platform": "", "project_url": "https://pypi.org/project/django-simple-pages/", "project_urls": { "Homepage": "https://github.com/teapow/django-simple-pages" }, "release_url": "https://pypi.org/project/django-simple-pages/0.3/", "requires_dist": null, "requires_python": "", "summary": "Model-based HTML pages and redirects.", "version": "0.3" }, "last_serial": 4278888, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7581ec9babffaa9d36cfd20143cf97e8", "sha256": "646e15610e5311a699b5ac73b0fa6714d35a040d03cded0b1f6e5e6acf7d9932" }, "downloads": -1, "filename": "django-simple-pages-0.1.tar.gz", "has_sig": false, "md5_digest": "7581ec9babffaa9d36cfd20143cf97e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5348, "upload_time": "2018-08-25T20:34:52", "url": "https://files.pythonhosted.org/packages/67/5a/09a9d500eab304905d7259e1aa5351f0b022a8260f355a7b00cc355cc601/django-simple-pages-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1c2f386a002374ca08180041873d7689", "sha256": "c5e54e7b73c5354b4e6438789062fe0c0ca82b674761146c8f6c1d7a8d817075" }, "downloads": -1, "filename": "django-simple-pages-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1c2f386a002374ca08180041873d7689", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7245, "upload_time": "2018-08-25T21:27:26", "url": "https://files.pythonhosted.org/packages/e7/be/f86b8a1f03b6eab7d39ebcb5a2ca2b0c98f997067ed772be193f0fcc5c35/django-simple-pages-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "44c349a4d6c03202909ae0f5186d83f2", "sha256": "4b31740d92575892dee7c7d7e84022f82eb2f1b90c94be3dfe1006a5b7141bea" }, "downloads": -1, "filename": "django-simple-pages-0.2.tar.gz", "has_sig": false, "md5_digest": "44c349a4d6c03202909ae0f5186d83f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 137572, "upload_time": "2018-09-13T18:46:09", "url": "https://files.pythonhosted.org/packages/65/7f/23193112aab4fcc7d301cefe6cf7f66ef2a846c2b1ab1eea8b87d554bbeb/django-simple-pages-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4b15358ac651c5b5bfa56fc3ddf16371", "sha256": "c37b8f0e832b2574b2529241d4f4ad18f20c0b376f0c354105d4f574cdd6d975" }, "downloads": -1, "filename": "django-simple-pages-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4b15358ac651c5b5bfa56fc3ddf16371", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 137744, "upload_time": "2018-09-13T18:51:49", "url": "https://files.pythonhosted.org/packages/a9/a5/9ea07d444dffe2cb3548058d4fa58fbf21c903a780e8442ca56d869b13c2/django-simple-pages-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "8ffa7f7317bdac5466da495563d30cfd", "sha256": "6cdbff206eae62811542d8da9297696b64b2211a53dbf91760318606812aa939" }, "downloads": -1, "filename": "django-simple-pages-0.3.tar.gz", "has_sig": false, "md5_digest": "8ffa7f7317bdac5466da495563d30cfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 138491, "upload_time": "2018-09-17T10:22:04", "url": "https://files.pythonhosted.org/packages/7e/c9/d4e44af8f484ae9b54912831957c2cf89d6b475518e60980f84bd2597f40/django-simple-pages-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ffa7f7317bdac5466da495563d30cfd", "sha256": "6cdbff206eae62811542d8da9297696b64b2211a53dbf91760318606812aa939" }, "downloads": -1, "filename": "django-simple-pages-0.3.tar.gz", "has_sig": false, "md5_digest": "8ffa7f7317bdac5466da495563d30cfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 138491, "upload_time": "2018-09-17T10:22:04", "url": "https://files.pythonhosted.org/packages/7e/c9/d4e44af8f484ae9b54912831957c2cf89d6b475518e60980f84bd2597f40/django-simple-pages-0.3.tar.gz" } ] }