{ "info": { "author": "Coumes Quentin", "author_email": "coumes.quentin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[](https://travis-ci.org/qcoumes/django-http-method)\n[](https://codecov.io/gh/qcoumes/django-http-method)\n[](https://www.codefactor.io/repository/github/qcoumes/django-http-method)\n[](https://badge.fury.io/py/django-http-method)\n[](#)\n[](#)\n[](https://github.com/qcoumes/django-http-method/blob/master/LICENSE)\n\n# django-http-method\nProvide a workaround to use different method than GET or POST inside HTML forms in django templates. Works only with Class Based View.\n\n## Installation\nFrom source code:\n\n python setup.py install\n\nFrom pip:\n\n pip install django-http-method\n\n## Usage\n\n##### Add *django_http_method* to your settings.INSTALLED_APPS\n\n```python\nINSTALLED_APPS = (\n [...],\n django_http_method,\n [...],\n)\n```\n\n##### Add the mixin to a CBV\n\n```python\nfrom django.views.generic import View\nfrom django_http_method import HttpMethodMixin\n\nclass TestView(HttpMethodMixin, View):\n\t\n\tdef get(self, request):\n\t\tpass\n\t\n\tdef delete(self, request):\n\t\tpass\n\t\n\tdef put(self, request):\n\t\tpass\n\t\n\t[...]\n```\n\n##### In your template, load *http_method* and use `{% http_[method] %}` in your forms:\n```html\n{% load http_method %}\n\n
\n\n\n\n```\n\nThe corresponding method of your View will now be called. For instance, if `{% http_put %}` was used, then `TestView.put()` will be called and any request parameter will be in `request.PUT`.\n\n----------------------------\n\n# Changelog\n\n\n#### 1.0.2\n\n* Added `pyaml` to setup requirement.\n\n\n#### 1.0.1\n\n* Now use `yaml.safe_load()` instead of `yaml.load()`\n* Added python 3.7 and django 2.1 to test matrix\n\n\n#### 1.0.0\n\n* Initial release for python3.4+ and django1.8, 1.10, 1.11 and 2.0+ \n\n\n#### 0.4.0\n\n* Will now search for parameters in body for methods PUT and PATCH\n* Method will default to request.method if '_method' parameter was not found\n\n\n#### 0.3.2\n\n* Added end slash '/' at the end of HTML input in templatetags\n\n\n#### 0.3.0\n\n* Removing '_method' from request parameters", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/qcoumes/django-http-method", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-http-method", "package_url": "https://pypi.org/project/django-http-method/", "platform": "", "project_url": "https://pypi.org/project/django-http-method/", "project_urls": { "Homepage": "https://github.com/qcoumes/django-http-method" }, "release_url": "https://pypi.org/project/django-http-method/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Provide a workaround to use different method from GET or POST inside HTML forms", "version": "1.0.2" }, "last_serial": 5242492, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "faa7aaa5ac0eb668d19139d534face43", "sha256": "7f96ef087464636a7b95686e11766cd2e10be4a2be89e3b1cdd2b87d5023e99d" }, "downloads": -1, "filename": "django-http-method-0.2.0.tar.gz", "has_sig": false, "md5_digest": "faa7aaa5ac0eb668d19139d534face43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4270, "upload_time": "2018-08-01T22:20:53", "url": "https://files.pythonhosted.org/packages/60/f6/2088c9e1d74bbdf5477cf439fca1501225cbbc2356e47a67adfcb5621ede/django-http-method-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "fe0668cb4fd0c1773b25ee369558c16c", "sha256": "b30cc19c200d2ef80fc384affe4e24e13e5d843423be88a26c24a3a5df69105f" }, "downloads": -1, "filename": "django-http-method-0.2.1.tar.gz", "has_sig": false, "md5_digest": "fe0668cb4fd0c1773b25ee369558c16c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4288, "upload_time": "2018-08-01T22:43:30", "url": "https://files.pythonhosted.org/packages/09/b5/5e9cac7fd8cdb4d3434739ed91baea20b328edee50d46629405c70bebf58/django-http-method-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "3a58c0e5212ec5951aa169ac9cb824c8", "sha256": "b1d1162207fac0e0586f298a8676e557912d2359d74e35eddd6310c603acead4" }, "downloads": -1, "filename": "django-http-method-0.2.2.tar.gz", "has_sig": false, "md5_digest": "3a58c0e5212ec5951aa169ac9cb824c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4313, "upload_time": "2018-08-02T15:07:48", "url": "https://files.pythonhosted.org/packages/93/22/cb1d2b4eb6a7a774dca424b60c633581249bb443f9f011e1e9368d6ebaf9/django-http-method-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4daffb25a3e14c4298f134c42156f0e7", "sha256": "f2e1f310e97874687daba13786be36dff64e68acbab67b7d588adba8126ffaf4" }, "downloads": -1, "filename": "django-http-method-0.3.0.tar.gz", "has_sig": false, "md5_digest": "4daffb25a3e14c4298f134c42156f0e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4461, "upload_time": "2018-08-04T12:19:40", "url": "https://files.pythonhosted.org/packages/75/ee/2efb7b46e0c8485f6f1c86c00a32f0d91e64be89433988f3d44627378cb6/django-http-method-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "a51a9872af949ed1cd6fb25eafcaf58b", "sha256": "844dad8b76abefd17c40e683b66fd20e89bf22cb6256840c33fbecd675d71a71" }, "downloads": -1, "filename": "django-http-method-0.3.1.tar.gz", "has_sig": false, "md5_digest": "a51a9872af949ed1cd6fb25eafcaf58b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4459, "upload_time": "2018-08-04T15:28:04", "url": "https://files.pythonhosted.org/packages/d0/3f/ef0e54b03e2616bb5f8ecfcf2dcae2f9d461cf638181b15134fe0a96af5f/django-http-method-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "30cd01d6ba721cda8bd54ef5488e1bdf", "sha256": "04a06446cb06649fde899ab5357919ec14a0924a640ea7e8f11abc16fbb8d597" }, "downloads": -1, "filename": "django-http-method-0.3.2.tar.gz", "has_sig": false, "md5_digest": "30cd01d6ba721cda8bd54ef5488e1bdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4501, "upload_time": "2018-08-04T18:02:25", "url": "https://files.pythonhosted.org/packages/c0/25/74aecc88f1cfffe867f84c46536c7495f2f71fbb50bc79b796bb0d603420/django-http-method-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "1386f010962984f74317cb6adbf3352c", "sha256": "90954e7158ddc5065f1eb970709c2fa441262fd3274d2ca2fa194918c59bd4cb" }, "downloads": -1, "filename": "django-http-method-0.4.0.tar.gz", "has_sig": false, "md5_digest": "1386f010962984f74317cb6adbf3352c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4868, "upload_time": "2018-09-14T11:11:35", "url": "https://files.pythonhosted.org/packages/6e/7c/8c54272156dd96e179414913dd06f8c027298ffe8ca06edc986079b3f5b3/django-http-method-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "1b2a5c28b3a41920b695ea5f6a6afd1d", "sha256": "49e5fee6b223eaec2c754f85289ae4178ca5c95d927244fd9620d61d12b6371a" }, "downloads": -1, "filename": "django-http-method-0.4.1.tar.gz", "has_sig": false, "md5_digest": "1b2a5c28b3a41920b695ea5f6a6afd1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4971, "upload_time": "2018-10-09T11:58:52", "url": "https://files.pythonhosted.org/packages/95/50/487660dd6dc91c091a58858484e6d9699450f8fccc6dd2b700da9007cb02/django-http-method-0.4.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f66d94afbd7fdf218e2b762f7b23e232", "sha256": "3743311e5f2623c8c58018c903cac6340bf280dc7827e2c3be04cddc2a2b1276" }, "downloads": -1, "filename": "django-http-method-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f66d94afbd7fdf218e2b762f7b23e232", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5084, "upload_time": "2018-11-14T14:30:43", "url": "https://files.pythonhosted.org/packages/b9/51/7afdef9496c032a14b519dc6a973c6528a08762c7f30f6ed8fd44d9ef1a6/django-http-method-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5ec7e2ad3876d822d98ea6e1f94f4d1d", "sha256": "c9e8062b736eca2c0612936cfd266acd87406f9ecb768bb29897b212a9cd85b4" }, "downloads": -1, "filename": "django-http-method-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5ec7e2ad3876d822d98ea6e1f94f4d1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5211, "upload_time": "2019-03-11T22:11:50", "url": "https://files.pythonhosted.org/packages/20/64/ad50878aa737fae0afc09e7c69e641bb03edcbd5a8b2003559fbd751c641/django-http-method-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "9e9a1ec99b936183e58baaa811f212c6", "sha256": "77933f437c0fb1eb48b7444865d546431c8b12354ea003fb3b6b8410ef3ab12b" }, "downloads": -1, "filename": "django-http-method-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9e9a1ec99b936183e58baaa811f212c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5268, "upload_time": "2019-05-08T11:45:11", "url": "https://files.pythonhosted.org/packages/d0/53/ba226777a1397685be80cdd805d5972affe1543bf64b3f7f9defc050b3f8/django-http-method-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9e9a1ec99b936183e58baaa811f212c6", "sha256": "77933f437c0fb1eb48b7444865d546431c8b12354ea003fb3b6b8410ef3ab12b" }, "downloads": -1, "filename": "django-http-method-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9e9a1ec99b936183e58baaa811f212c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5268, "upload_time": "2019-05-08T11:45:11", "url": "https://files.pythonhosted.org/packages/d0/53/ba226777a1397685be80cdd805d5972affe1543bf64b3f7f9defc050b3f8/django-http-method-1.0.2.tar.gz" } ] }