{ "info": { "author": "Brad Montgomery", "author_email": "brad@bradmontgomery.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-staticflatpages\n======================\n\n[![Current Release](http://img.shields.io/pypi/v/django-staticflatpages.svg?style=flat-square)](https://pypi.python.org/pypi/django-staticflatpages/)\n[![License](http://img.shields.io/pypi/l/django-staticflatpages.svg?style=flat-square)](https://pypi.python.org/pypi/django-staticflatpages/)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=flat-square)](https://github.com/bradmontgomery/django-staticflatpages/releases)\n\n**It's like flatpages, but with templates**\n\nThis is like Django's built-in `contrib.flatpages` app, but without the database.\nIt's just static html documents served from your filesystem.\n\n## Motivation\n\nI've been using the `flatpages` app for a long time, but somewhere along the\nline I started keeping my flatpage content (snippets of html) in the git repo\nwith the rest of my project. Any time I made a change to a flatpage, I'd edit\nthe file locally, commit the changes, then copy and paste the new content into\nthe relevant flatpage.\n\nWhy not just serve these from my templates directory?\n\nThat's what `staticflatpages` does.\n\n## Installation\n\nInstall the latest release with pip:\n\n pip install django-staticflatpages\n\n\n## Compatibility\n\nThe most recent version of this app targets Django 2.1+ and Python 3.6+. Download a\n[previous release](https://github.com/bradmontgomery/django-staticflatpages/releases/tag/0.5.0)\nfor older versions of Django.\n\nYou can run the test suite with `python manage.py test staticflatpages`, and open an\n[Issue on Github](https://github.com/bradmontgomery/django-staticflatpages/issues)\nif you run into any problems.\n\n\n## Configuration\n\n1. Add `staticflatpages` to your `INSTALLED_APPS`.\n2. Add `staticflatpages.middleware.StaticFlatpageFallbackMiddleware` to your\n `MIDDLEWARE` settings.\n3. Create a `staticflatpages` template directory. This should be a\n subdirectory of one of the templates in your `TEMPLATES` setting. Any\n templates you include here (except for a `base.html`) will get served as\n a static page.\n\nFor example, assuming your project-level template directory is named\n\"templates\", then:\n\n* The url `/about/` will render `templates/staticflatpages/about.html`\n* The url `/about/team/` will render `templates/staticflatpages/about/team.html`\n* If you include an index template (`templates/staticflatpages/index.html`), and\n no other url maps to `/`, it will get used as your index.\n\n\n## Sitemaps\n\nThis app also supports sitemaps for staticflatpages. To enable these, you'll\nneed to have `django.contrib.sitemaps` listed in your `INSTALLED_APPS` setting.\nThen, set up a sitemap (e.g. in your Root URLconf):\n\n from staticflatpages.sitemaps import StaticFlatpageSitemap\n\n sitemaps = {\n 'staticflatpages': StaticFlatpageSitemap,\n }\n\nDon't forget to include your sitemaps urls as normal, e.g.:\n\n\n path(\n 'sitemap-
.xml',\n sitemaps_views.sitemap,\n {'sitemaps': sitemaps},\n name='django.contrib.sitemaps.views.sitemap'\n ),\n path(\n 'sitemap.xml',\n sitemaps_views.index,\n {'sitemaps': sitemaps},\n name='django.contrib.sitemaps.views.sitemap'\n ),\n\n\n*NOTE*: The `sitemaps` framework also requires the `sites` framework so you'll\nneed that installed, and you'll also need to define a `SITE_ID`.\n\n\n## Settings\n\nIf you use the sitemaps feature, you may also want to include the following\nsettings:\n\n* `STATICFLATPAGES_CHANGEFREQ`: Corresponds to the `Sitemap.changefreq`\n attribute (defaults to `never`).\n* `STATICFLATPAGES_PRIORITY`: Corresponds to the `Sitemap.priority`\n attribute (defaults to 0.5).\n\n\n## Misc\n\nThis app could work with with [django-dirtyedit](https://github.com/synw/django-dirtyedit),\nwhich allows you to edit files from the admin (if you're so inclined).\n\nLicense\n-------\n\nThis code is distributed under the terms of the MIT license. See the\n`LICENSE` file.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bradmontgomery/django-staticflatpages", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-staticflatpages", "package_url": "https://pypi.org/project/django-staticflatpages/", "platform": "", "project_url": "https://pypi.org/project/django-staticflatpages/", "project_urls": { "Homepage": "https://github.com/bradmontgomery/django-staticflatpages" }, "release_url": "https://pypi.org/project/django-staticflatpages/0.6.0/", "requires_dist": null, "requires_python": "", "summary": "like flatpages, but with templates.", "version": "0.6.0" }, "last_serial": 4656644, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c63fcd384cacbb16075803a59ec0b6b3", "sha256": "e53ddb050affd3d24c5c54e103a70bcb1d960ceb967076c3b42405dfd2147fe5" }, "downloads": -1, "filename": "django-staticflatpages-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c63fcd384cacbb16075803a59ec0b6b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4131, "upload_time": "2012-10-12T21:57:28", "url": "https://files.pythonhosted.org/packages/cd/cf/57e8400a989047a96b2483255d0a03982b210029430ca251c7d16e0e1c46/django-staticflatpages-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "18db4652563ca784274e7bbdf5792967", "sha256": "9d9bf1437ee950b7036e2ec987ff22b1b2d3275b0a2eba34cbee15c72bacbcb1" }, "downloads": -1, "filename": "django-staticflatpages-0.1.1.tar.gz", "has_sig": false, "md5_digest": "18db4652563ca784274e7bbdf5792967", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4174, "upload_time": "2012-10-12T22:29:47", "url": "https://files.pythonhosted.org/packages/03/dd/046ac15633fc53a5bed8005997e044819e36ae79ce21459aa5698aea2706/django-staticflatpages-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1e140ded780687112279cf428750b98e", "sha256": "69ca32636cc6298ee61f4a8dc910db87e239ea65dfb95864c66e66ea3e2de350" }, "downloads": -1, "filename": "django-staticflatpages-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1e140ded780687112279cf428750b98e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6132, "upload_time": "2012-11-06T17:42:32", "url": "https://files.pythonhosted.org/packages/5a/93/6b84c30408e1ff1390787722ebc8cddad350db7cf80ddac0fba3583d4b3e/django-staticflatpages-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "419f1feaa8c8a0e55a78c2093814c8c9", "sha256": "b6b8807249df53201934e40a1537188980d4c9a5f2df2241eb2020a161af4823" }, "downloads": -1, "filename": "django-staticflatpages-0.2.1.tar.gz", "has_sig": false, "md5_digest": "419f1feaa8c8a0e55a78c2093814c8c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6249, "upload_time": "2012-11-19T20:00:47", "url": "https://files.pythonhosted.org/packages/5c/40/cf8ebc4b72fe4532fe7088485ac3db9bb2ced468bc2ab939ea92a57bbccd/django-staticflatpages-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7b196a059ee9f3fdd9c3e712c1092c62", "sha256": "92d450cb6602b8f65b16fae57f107dfe4945bed7cb927021ca061977c34f2f42" }, "downloads": -1, "filename": "django-staticflatpages-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7b196a059ee9f3fdd9c3e712c1092c62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6299, "upload_time": "2014-05-18T14:12:51", "url": "https://files.pythonhosted.org/packages/37/da/b444e722f4b0f55275a1b8f08b46e02377a28400729aab993860f0f43231/django-staticflatpages-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "c3ae5770c40e5ef559df0bd965e32df0", "sha256": "f04bd47df13c95e6675d0ede2611c7cf6af588755e0ab0cdc07cc9ab6370027d" }, "downloads": -1, "filename": "django-staticflatpages-0.3.1.tar.gz", "has_sig": false, "md5_digest": "c3ae5770c40e5ef559df0bd965e32df0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6537, "upload_time": "2015-04-25T19:40:46", "url": "https://files.pythonhosted.org/packages/8d/6c/5b32b0c1f7aa273283e269a27d1d602215d2f9327fd12817aa98bf8850ed/django-staticflatpages-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "00112234e226a44a8c1e48dcc600497a", "sha256": "1e22ac02da500ed3fbb5e095f2d0000d73d171ef1f23b810029f16d83ee5c226" }, "downloads": -1, "filename": "django-staticflatpages-0.4.0.tar.gz", "has_sig": false, "md5_digest": "00112234e226a44a8c1e48dcc600497a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7314, "upload_time": "2015-09-14T13:33:04", "url": "https://files.pythonhosted.org/packages/36/7b/4e3b0ef7c61fb1d1c6980902758974ffc8fc26ef12a767b0f1cd20bc0533/django-staticflatpages-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "e743abe8b626b0b9ee1bb603cfc34689", "sha256": "0071004c08230eb963a2616ebbdd9ae013c9227a2b388fef5f21b8322bd8ad9d" }, "downloads": -1, "filename": "django-staticflatpages-0.5.0.tar.gz", "has_sig": false, "md5_digest": "e743abe8b626b0b9ee1bb603cfc34689", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7279, "upload_time": "2017-06-04T19:55:10", "url": "https://files.pythonhosted.org/packages/e9/36/ee49ab4f85d49b148217689b60e44581ce0a9f63b1fe4838dde771626f68/django-staticflatpages-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "b3500e3d1db7463b5e3a2e24c2fedd36", "sha256": "5d23f850b5d125e132b83c0657a72faf6aedcdb089ed431fb61d1366565ded08" }, "downloads": -1, "filename": "django-staticflatpages-0.6.0.tar.gz", "has_sig": false, "md5_digest": "b3500e3d1db7463b5e3a2e24c2fedd36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7803, "upload_time": "2019-01-03T14:51:16", "url": "https://files.pythonhosted.org/packages/f2/3a/8672da8b496741596fbfa0ae3fc34e2f37156c6da8354b930786466329b5/django-staticflatpages-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b3500e3d1db7463b5e3a2e24c2fedd36", "sha256": "5d23f850b5d125e132b83c0657a72faf6aedcdb089ed431fb61d1366565ded08" }, "downloads": -1, "filename": "django-staticflatpages-0.6.0.tar.gz", "has_sig": false, "md5_digest": "b3500e3d1db7463b5e3a2e24c2fedd36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7803, "upload_time": "2019-01-03T14:51:16", "url": "https://files.pythonhosted.org/packages/f2/3a/8672da8b496741596fbfa0ae3fc34e2f37156c6da8354b930786466329b5/django-staticflatpages-0.6.0.tar.gz" } ] }