{ "info": { "author": "Bryan Chow", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [], "description": "django-templatepages\n--------------------\n\n**django-templatepages** is a Django app for mapping URLs to templates\non the filesystem as if they were static web pages. This is useful\nfor integrating static content into your Django project while still\nleveraging the Django templating language.\n\ntemplatepages differs from django.contrib.flatpages in that the\ncontent is stored entirely in templates on the filesystem, rather\nthan in a database. We developed this app to address a real-world\nsituation where much of the content in a project is static and\nmanaged on the filesystem under version control. templatepages\nallows us to factor out the page layout using the Django templating\nlanguage, and cleanly integrate the static content with other dynamic\ncomponents implemented as Django apps.\n\nPython's ``mimetypes.guess_type()`` is used to determine appropriate\nContent-type and Content-encoding headers for the HTTP response.\nThis means that you can use templatepages for more than just HTML\nfiles; for example, we use it to serve dynamically-generated CSS\nstylesheets.\n\n\nUsage\n-----\n\nUsing templatepages is relatively straightforward: just add it to\n``INSTALLED_APPS`` in your project's settings.py file, and integrate\nthe URL mapping in your project's urls.py file. Then place your\ntemplates in your project's templates/templatepages folder.\n\nFor example, the following stanza in urls.py will configure your\nproject to map all requests beginning with articles/ to\ntemplatepages:\n\n::\n\n urlpatterns = patterns('',\n (r'^articles/', include('templatepages.urls')),\n )\n\nIn this example, a request for http://your.site/articles/contact.html\nshould result in templatepages attempting to return a rendered\ntemplate based on ``templates/templatepages/contact.html``.\nIf this file cannot be found, templatepages will raise Http404.\n\nIf no filename is specified in the URL, templatepages will attempt\nto render ``index.html``.\n\ntemplatepages passes RequestContext to the template, so full access\nto template context processor variables is available.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/bryanchow/django-templatepages/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bryanchow/django-templatepages", "keywords": "", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-templatepages", "package_url": "https://pypi.org/project/django-templatepages/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-templatepages/", "project_urls": { "Download": "https://github.com/bryanchow/django-templatepages/tarball/master", "Homepage": "https://github.com/bryanchow/django-templatepages" }, "release_url": "https://pypi.org/project/django-templatepages/0.2.3/", "requires_dist": null, "requires_python": null, "summary": "Django app for mapping URLs to templates on the filesystem", "version": "0.2.3" }, "last_serial": 948243, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "0ede83765df383db1c84456638647d4f", "sha256": "70f19f1daf6cbb993cbe69ba4ece69b29593428961c46012649d44ba890a0546" }, "downloads": -1, "filename": "django-templatepages-0.2.tar.gz", "has_sig": false, "md5_digest": "0ede83765df383db1c84456638647d4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3262, "upload_time": "2012-04-28T07:26:37", "url": "https://files.pythonhosted.org/packages/6f/73/905e6a53ebe4113ecc8fa18fd33941e9de0a5c3fa4a96c25e55407dfdc1a/django-templatepages-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "cc5788965ed77f0635248d6729ae4675", "sha256": "93c79c04496d2fd24bf317cd3cdd69c405237879004b0d09254f35be4e467411" }, "downloads": -1, "filename": "django-templatepages-0.2.1.tar.gz", "has_sig": false, "md5_digest": "cc5788965ed77f0635248d6729ae4675", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4374, "upload_time": "2013-01-08T22:56:19", "url": "https://files.pythonhosted.org/packages/ed/5d/cf0898d8f9bbf91783138648bd0dbbd4b7697c51c1ec253fc199c27b2b45/django-templatepages-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "76c8d5bacb8c09ef43aac5c9baf52d51", "sha256": "e0a11c79b24ca7d873f656a06fbe07b5a5ab0ad35eeefd2361169e09cb4fdd48" }, "downloads": -1, "filename": "django-templatepages-0.2.2.tar.gz", "has_sig": false, "md5_digest": "76c8d5bacb8c09ef43aac5c9baf52d51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4384, "upload_time": "2013-07-09T18:53:56", "url": "https://files.pythonhosted.org/packages/26/b9/8bd56f1b0ab30c57506878c01120cf94975bd2bcdab2cd2e10712726ed6d/django-templatepages-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "15f39685bc2a1cc61e06b95f077e32f5", "sha256": "133030c4cc736dec688144cca6254ef46e2e7e8f7d69cfab02fe835eefc3c8f5" }, "downloads": -1, "filename": "django-templatepages-0.2.3.tar.gz", "has_sig": false, "md5_digest": "15f39685bc2a1cc61e06b95f077e32f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4420, "upload_time": "2013-12-18T20:23:34", "url": "https://files.pythonhosted.org/packages/fb/4e/7d10b0145d9f4cfac73df64ab1fc8ec065ce10525e84bed81dc4c9fd890e/django-templatepages-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "15f39685bc2a1cc61e06b95f077e32f5", "sha256": "133030c4cc736dec688144cca6254ef46e2e7e8f7d69cfab02fe835eefc3c8f5" }, "downloads": -1, "filename": "django-templatepages-0.2.3.tar.gz", "has_sig": false, "md5_digest": "15f39685bc2a1cc61e06b95f077e32f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4420, "upload_time": "2013-12-18T20:23:34", "url": "https://files.pythonhosted.org/packages/fb/4e/7d10b0145d9f4cfac73df64ab1fc8ec065ce10525e84bed81dc4c9fd890e/django-templatepages-0.2.3.tar.gz" } ] }