{ "info": { "author": "Jonas Obrist", "author_email": "ojiidotch@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "#####################\nDjango Statictemplate\n#####################\n\n.. image:: https://pypip.in/version/django-statictemplate/badge.png\n :target: https://pypi.python.org/pypi/django-statictemplate/\n :alt: Latest Version\n\n.. image:: https://travis-ci.org/yakky/django-statictemplate.svg\n :target: https://travis-ci.org/yakky/django-statictemplate\n :alt: Travis status\n\n.. image:: https://coveralls.io/repos/yakky/django-statictemplate/badge.png\n :target: https://coveralls.io/r/yakky/django-statictemplate\n :alt: Coveralls status\n\n.. image:: https://pypip.in/download/django-statictemplate/badge.png\n :target: https://pypi.python.org/pypi//django-statictemplate/\n :alt: Download\n\n.. image:: https://pypip.in/wheel/django-statictemplate/badge.png\n :target: https://pypi.python.org/pypi/django-statictemplate/\n :alt: Wheel Status\n\n.. image:: https://pypip.in/license/django-statictemplate/badge.png\n :target: https://pypi.python.org/pypi/django-statictemplate/\n :alt: License\n\n\nThis project aims at providing a compromise between dynamic error pages for\nDjango (that use template tags etc and therefore potentially error too) and\nhaving to write static error pages by hand.\n\nIt does so by providing a management command that can be invoked to turn a\ndynamic Django template into a static HTML page with no template tags\nwhatsoever in it.\n\nNote that this means that every time you change your error pages, you need to\nre-run this script. Ideally this is part of your deploy process.\n\n\n************\nInstallation\n************\n\n``pip install django-statictemplate`` inside your virtualenv.\n\nAdd ``statictemplate`` to your ``INSTALLED_APPS``.\n\n\n*************\nConfiguration\n*************\n\n``django-statictemplate`` does not require any configuration. by default.\n\n\nBy default ``django-statictemplate`` overrides the configured middlewares for\nenhanced compatibility and to avoid incompatibilities.\n\nHowever this may not be always feasible: if you need a specific set of\nmiddlewares to be loaded set::\n\n STATICTEMPLATE_OVERRIDE_MIDDLEWARE = False\n\nin you settings files.\n\nPlease note that ``django-statictemplate`` has not been tested with every\npossible middleware, thus you may encounter failures and strange behaviors\nespecially fi you use middlewares that changes the response type.\n\n\n*****\nUsage\n*****\n\n``python manage.py statictemplate dynamic_500.html > 500.html``\n\nor\n\n``python manage.py statictemplate dynamic_500.html -f 500.html``\n\nThe management command renders a template given by name (standard Django\ntemplate name resolution applies) and writes the output to stdout or to a file.\n\n=========\nArguments\n=========\n\n* ``template``: standard django template name to render\n* ``language``: sets the client django_language cookie to render page in the\n given language\n* ``extra_request``: extra parameters injected in the request. Parameters must\n be serialized in querystring format (e.g.: ``'variable=value&variable=value'``;\n please note the single quote **'** to protect ampersand **&**).\n\n=======\nOptions\n=======\n\n* ``-f``, ``--file``: file destionation for command output\n\n*******\nLicense\n*******\n\nThis project is licensed under the BSD license.\n\n\n************\nContributors\n************\n\nSee https://github.com/ojii/django-statictemplate/contributors\n", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ojii/django-statictemplate", "keywords": null, "license": "LICENSE", "maintainer": null, "maintainer_email": null, "name": "django-statictemplate", "package_url": "https://pypi.org/project/django-statictemplate/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-statictemplate/", "project_urls": { "Homepage": "https://github.com/ojii/django-statictemplate" }, "release_url": "https://pypi.org/project/django-statictemplate/2.0.1/", "requires_dist": [ "django (>=1.2)" ], "requires_python": null, "summary": "This project aims at providing a compromise between dynamic error pages for Django (that use template tags etc and therefore potentially error too) and having to write static error pages by hand.", "version": "2.0.1" }, "last_serial": 1592521, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "a2391e4e9aeada5ca84d731c50fe1dc9", "sha256": "a9e5c8e0bd4b88c3f0537f9962c5f1e5df2161d779c87fed101177d69419c6a3" }, "downloads": -1, "filename": "django-statictemplate-1.0.tar.gz", "has_sig": false, "md5_digest": "a2391e4e9aeada5ca84d731c50fe1dc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2297, "upload_time": "2012-04-11T11:30:49", "url": "https://files.pythonhosted.org/packages/aa/6f/0c41057396eae55ef6074b7ee9a50669f234b4013e1a180e25718d022660/django-statictemplate-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "d7d45d9e2e77600f71ca37fd4e364c9e", "sha256": "a9ade7fc1431d533382912e97d669da009b094378a93b3de543edc98ec5be99d" }, "downloads": -1, "filename": "django-statictemplate-1.1.tar.gz", "has_sig": false, "md5_digest": "d7d45d9e2e77600f71ca37fd4e364c9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3091, "upload_time": "2013-11-08T11:47:55", "url": "https://files.pythonhosted.org/packages/b9/e1/b79dba7c8d476d64459046628d36373952ad27ba65ff4e797ea8bc36ce61/django-statictemplate-1.1.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "34794a2a1014845d2052fb0182c7da8a", "sha256": "79d3bd724875dae5223de28dabe4e084dac62da1440cf57f77f6c14825c64319" }, "downloads": -1, "filename": "django_statictemplate-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "34794a2a1014845d2052fb0182c7da8a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5681, "upload_time": "2014-06-02T20:23:31", "url": "https://files.pythonhosted.org/packages/9c/6e/41e51efca943f95e31acb7f891907b47c489e4503fdf7cc2499c9fed12c3/django_statictemplate-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8b15e3866953b1ce0f822f5392625af7", "sha256": "f2b1924ba571db7b31e0fd2ab9526f51ff5f1e9a7e723e80aeb423e35b3ebac8" }, "downloads": -1, "filename": "django-statictemplate-2.0.tar.gz", "has_sig": false, "md5_digest": "8b15e3866953b1ce0f822f5392625af7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4403, "upload_time": "2014-06-02T20:23:28", "url": "https://files.pythonhosted.org/packages/db/9b/a955f52e6ca0f993b350466b21f77bcb79bbdd11e3e19a812f3d98dbb48c/django-statictemplate-2.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "ff00076715ebe0f8b1875c0c93c6f65e", "sha256": "9c2534c909896c35a11d83732eb10b856cd45ee3bfc9d721120fcafd4f17164e" }, "downloads": -1, "filename": "django_statictemplate-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ff00076715ebe0f8b1875c0c93c6f65e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5742, "upload_time": "2015-06-15T13:10:25", "url": "https://files.pythonhosted.org/packages/6b/a8/e87a69180588529fb742e08fba9df72d4529401bc897cdc1a5be919479ff/django_statictemplate-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52a141069d2e84782c573c8cd413cbcb", "sha256": "e2bd87d3f29063e423ba3c6c79897ee271ad2f0a49439707a5c9b9c1cc282454" }, "downloads": -1, "filename": "django-statictemplate-2.0.1.tar.gz", "has_sig": false, "md5_digest": "52a141069d2e84782c573c8cd413cbcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2015-06-15T13:10:29", "url": "https://files.pythonhosted.org/packages/fe/a8/affa576b50a84466d1c387fe6e7ddd552bdb6aeca18e945edbf620e5006e/django-statictemplate-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ff00076715ebe0f8b1875c0c93c6f65e", "sha256": "9c2534c909896c35a11d83732eb10b856cd45ee3bfc9d721120fcafd4f17164e" }, "downloads": -1, "filename": "django_statictemplate-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ff00076715ebe0f8b1875c0c93c6f65e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5742, "upload_time": "2015-06-15T13:10:25", "url": "https://files.pythonhosted.org/packages/6b/a8/e87a69180588529fb742e08fba9df72d4529401bc897cdc1a5be919479ff/django_statictemplate-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52a141069d2e84782c573c8cd413cbcb", "sha256": "e2bd87d3f29063e423ba3c6c79897ee271ad2f0a49439707a5c9b9c1cc282454" }, "downloads": -1, "filename": "django-statictemplate-2.0.1.tar.gz", "has_sig": false, "md5_digest": "52a141069d2e84782c573c8cd413cbcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2015-06-15T13:10:29", "url": "https://files.pythonhosted.org/packages/fe/a8/affa576b50a84466d1c387fe6e7ddd552bdb6aeca18e945edbf620e5006e/django-statictemplate-2.0.1.tar.gz" } ] }