{ "info": { "author": "gojuukaze", "author_email": "i@ikaze.uu.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "django-ktag\n==========================\n\n-\n\ndjango tag input field\n\n-\n\n`Home `__ | `Documentation `__\n\n\n\n\n.. image:: https://github.com/gojuukaze/django-ktag/blob/master/demo.gif?raw=true\n\nInstall\n----------------------\n\n.. code-block:: shell\n\n pip install django-ktag\n\nRequirements\n----------------------\n\n- python 3+\n- django 2+\n\n\nQuick Start\n----------------------\n\n- **The settings**\n\n1. Add 'ktag' application to the INSTALLED_APPS\n\n.. code-block:: python\n\n INSTALLED_APPS = [\n ...\n 'ktag',\n ]\n\n2. Make sure `APP_DIRS` is True in TEMPLATES\n\n.. code-block:: python\n\n TEMPLATES = [\n ...\n 'APP_DIRS': True,\n ...\n ]\n\n\n- **The form class**\n\n\nBuilding a form in Django like this:\n\n.. code-block:: python\n\n from django import forms\n from ktag.fields import TagField\n\n class TagForm(forms.Form):\n fruits = TagField(label='fruits', place_holder='write your fruits', delimiters=' ',\n data_list=['apple', 'banana', 'watermelon', 'orange'], initial='grape coconut')\n\n\n\n- **The view**\n\n\nTo handle the form we need to instantiate it in the view for the URL where we want it to be published:\n\n.. code-block:: python\n\n from django.http import HttpResponse\n from django.shortcuts import render\n\n from example.forms import TagForm\n\n def index(request):\n if request.method == 'POST':\n form = TagForm(request.POST)\n if form.is_valid():\n print(form.cleaned_data['fruits'])\n return HttpResponse(str(form.cleaned_data['fruits']))\n\n else:\n form = TagForm()\n return render(request, 'index.html', {'form': form})\n\n\n- **The template**\n\n\nThe simplest example is:\n\n.. code-block:: python\n\n
\n {% csrf_token %}\n {{ form }}\n
\n \n
\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gojuukaze/django-ktag", "keywords": "", "license": "GUN V3.0", "maintainer": "", "maintainer_email": "", "name": "django-ktag", "package_url": "https://pypi.org/project/django-ktag/", "platform": "Any", "project_url": "https://pypi.org/project/django-ktag/", "project_urls": { "Homepage": "https://github.com/gojuukaze/django-ktag" }, "release_url": "https://pypi.org/project/django-ktag/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "django tag input field ", "version": "1.0.3" }, "last_serial": 3882181, "releases": { "0.0.6": [ { "comment_text": "", "digests": { "md5": "de1c3d7f74cfa5b5f00f4e47c65423dd", "sha256": "50b1a7be2bb2415c83d72f02f022b2812398eeedfa43cff366512410b3a0503e" }, "downloads": -1, "filename": "django-ktag-0.0.6.tar.gz", "has_sig": false, "md5_digest": "de1c3d7f74cfa5b5f00f4e47c65423dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23053, "upload_time": "2018-04-12T06:39:52", "url": "https://files.pythonhosted.org/packages/db/97/2c692f1ab48b4b0c47102a395608261e71418ceb4261b8fdc398f46ac676/django-ktag-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "f90b7fe141dac36d8f0c53cd18e17751", "sha256": "ecb1374ae6d5f7666c11977fcc1aa78eb64cf979c04b17754439ecef8d351aa1" }, "downloads": -1, "filename": "django_ktag-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "f90b7fe141dac36d8f0c53cd18e17751", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 17657, "upload_time": "2018-04-12T06:44:50", "url": "https://files.pythonhosted.org/packages/af/ab/d872ea4502819a36a175fdded9bfb35c6a9bff8055444b1c3173f3e4cc04/django_ktag-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a17b7d37a18877ede5b01445cebe8ba", "sha256": "0c0fd74014e0dcb4a4d31bd2297aac1b2650ac9ea3a69be8ed830b20b3f22f37" }, "downloads": -1, "filename": "django-ktag-0.0.7.tar.gz", "has_sig": false, "md5_digest": "5a17b7d37a18877ede5b01445cebe8ba", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 23062, "upload_time": "2018-04-12T06:44:52", "url": "https://files.pythonhosted.org/packages/ea/19/e6cabb5b8bd005ea934657fbaf621aba9194c8ab399eafd62f173715f832/django-ktag-0.0.7.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "a07a55028a122413fd7d6edbdf958d2d", "sha256": "9071756a8f631cf20c186c56f67386d989630424b307c4a0ffd3be8098b5ca84" }, "downloads": -1, "filename": "django_ktag-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a07a55028a122413fd7d6edbdf958d2d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 13020, "upload_time": "2018-04-12T07:03:14", "url": "https://files.pythonhosted.org/packages/49/87/e18d8356f2aa1e1d054682fd76f4db82762e74b6b95e5a0c5c60d9a4a004/django_ktag-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3b85461cd2f17417ac63f3551427397c", "sha256": "26173d1c139a70c1b85b062f7be852a6dd5e16485ae46118bafb5d0d880e7533" }, "downloads": -1, "filename": "django-ktag-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3b85461cd2f17417ac63f3551427397c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 23346, "upload_time": "2018-04-12T07:03:16", "url": "https://files.pythonhosted.org/packages/ca/cb/f9963b04ab7ad15896ffeba96dc2eaa84c37a8568854985fed922dd1e10d/django-ktag-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "80ef11a1998fb9146c475410b13b31ae", "sha256": "343a013cffba7b608418206399e85f395a3f3a8b38f226bc3116a6e3fc877207" }, "downloads": -1, "filename": "django-ktag-1.0.1.tar.gz", "has_sig": false, "md5_digest": "80ef11a1998fb9146c475410b13b31ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23641, "upload_time": "2018-05-21T03:16:01", "url": "https://files.pythonhosted.org/packages/10/1e/6e7ba3e21b6eb18fdf1a932ae3f585d03b60b979c380c42ecbd7c3c83d6f/django-ktag-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d4705e9994d4cbc2da61405dc7f0b115", "sha256": "f881de4355cad20584601cc1d7616408322d91a399510e623ba1cd332d0ab596" }, "downloads": -1, "filename": "django-ktag-1.0.2.tar.gz", "has_sig": false, "md5_digest": "d4705e9994d4cbc2da61405dc7f0b115", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23608, "upload_time": "2018-05-21T05:15:33", "url": "https://files.pythonhosted.org/packages/bf/8f/e64367e417d27a8a7db8873c4bb863a111e0ff75665979ec9ad714d25469/django-ktag-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "45fe23b4cf05d19b8cc63bce34ae6566", "sha256": "eb057f995bbf793b68669bdb01729716653ac39f0447e936d875ca65bf186d94" }, "downloads": -1, "filename": "django-ktag-1.0.3.tar.gz", "has_sig": false, "md5_digest": "45fe23b4cf05d19b8cc63bce34ae6566", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23356, "upload_time": "2018-05-21T05:18:42", "url": "https://files.pythonhosted.org/packages/ae/37/637b232365f052f7a8fbf20f7e06803c2552dbfdee56b6c603849d9acfdf/django-ktag-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "45fe23b4cf05d19b8cc63bce34ae6566", "sha256": "eb057f995bbf793b68669bdb01729716653ac39f0447e936d875ca65bf186d94" }, "downloads": -1, "filename": "django-ktag-1.0.3.tar.gz", "has_sig": false, "md5_digest": "45fe23b4cf05d19b8cc63bce34ae6566", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23356, "upload_time": "2018-05-21T05:18:42", "url": "https://files.pythonhosted.org/packages/ae/37/637b232365f052f7a8fbf20f7e06803c2552dbfdee56b6c603849d9acfdf/django-ktag-1.0.3.tar.gz" } ] }