{ "info": { "author": "Saul Shanabrook", "author_email": "s.shanabrook@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries" ], "description": "django-response-timeout\n============================\n\n.. image:: https://pypip.in/v/django-response-timeout/badge.png\n :target: https://crate.io/packages/django-response-timeout\n\n.. image:: https://travis-ci.org/saulshanabrook/django-response-timeout.png\n :target: https://travis-ci.org/saulshanabrook/django-response-timeout\n\n``django-response-timeout`` allows you to set the cache time globally for\nall responses. It provides a way to override the client side cache time for\nthe Django `per site`_ caching middleware.\n\n.. _per site: https://docs.djangoproject.com/en/dev/topics/cache/#the-per-site-cache\n\n\nInstallation\n------------\nInstallation is as easy as::\n\n pip install django-response-timeout\n\n\nSetup\n-----\nAdd ``response_timeout.middleware.SetCacheTimeoutMiddleware`` and place it\nafter ``dumper.middleware.UpdateCacheMiddleware`` so that it will set the\nheader time first on cached responses.\n\n.. code-block:: python\n\n MIDDLEWARE_CLASSES = (\n 'django.middleware.cache.UpdateCacheMiddleware',\n 'response_timeout.middleware.SetCacheTimeoutMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.cache.FetchFromCacheMiddleware',\n )\n\nThen set `RESPONSE_CACHE_SECONDS` to the number of seconds each page should\nbe cached on the front end.\n\nThe Django documention does not cohesively describe how your middleware\nshould be ordered, however `this stackoverflow`_ discussion does a fine job.\n\n.. _this stackoverflow: http://stackoverflow.com/questions/4632323/practical-rules-for-django-middleware-ordering#question\n\n\nContributing\n------------\n\nIf you find issues or would like to see a feature suppored, head over to\nthe `issues section` and report it. Don't be agraid, go ahead, do it!\n\n.. _issues section: https://github.com/saulshanabrook/django-response-timeout/issues\n\nTo contribute code in any form, fork the repository and clone it locally.\nCreate a new branch for your feature::\n\n git commit -b feature/whatever-you-like\n\nThen make sure all the tests past (and write new ones for any new features)::\n\n pip install -e .\n pip install -r requirements-dev.txt\n django-admin.py test --settings=test.settings\n\nCheck if the README.rst looks right::\n\n restview --long-description\n\nThen push the finished feature to github and open a pull request form the branch.\n\nNew Release\n^^^^^^^^^^^\nTo create a new release:\n\n1. Add changes to ``CHANGES.txt``\n2. Change version in ``setup.py``\n3. ``python setup.py register``\n4. ``python setup.py sdist upload``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.github.com/saulshanabrook/django-response-timeout", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "django-response-timeout", "package_url": "https://pypi.org/project/django-response-timeout/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-response-timeout/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://www.github.com/saulshanabrook/django-response-timeout" }, "release_url": "https://pypi.org/project/django-response-timeout/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Django global response timeout middleware", "version": "0.1.0" }, "last_serial": 812191, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8113ca70244e341e73adc47629f1b5ed", "sha256": "6632bb82e101404c2ff4ab27c6d353d01f9dda6e2e5e0395d61289b6fab33761" }, "downloads": -1, "filename": "django-response-timeout-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8113ca70244e341e73adc47629f1b5ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4426, "upload_time": "2013-07-09T23:19:05", "url": "https://files.pythonhosted.org/packages/b8/1e/daea4d67aa52b5e0a6a8ba359f70127b3a9b779ace93418b2ba563568a61/django-response-timeout-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8113ca70244e341e73adc47629f1b5ed", "sha256": "6632bb82e101404c2ff4ab27c6d353d01f9dda6e2e5e0395d61289b6fab33761" }, "downloads": -1, "filename": "django-response-timeout-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8113ca70244e341e73adc47629f1b5ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4426, "upload_time": "2013-07-09T23:19:05", "url": "https://files.pythonhosted.org/packages/b8/1e/daea4d67aa52b5e0a6a8ba359f70127b3a9b779ace93418b2ba563568a61/django-response-timeout-0.1.0.tar.gz" } ] }