Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

METADATA 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Metadata-Version: 2.0
  2. Name: django-taggit
  3. Version: 0.23.0
  4. Summary: django-taggit is a reusable Django application for simple tagging.
  5. Home-page: http://github.com/alex/django-taggit/tree/master
  6. Author: Alex Gaynor
  7. Author-email: alex.gaynor@gmail.com
  8. License: BSD
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Web Environment
  12. Classifier: Framework :: Django
  13. Classifier: Framework :: Django :: 1.11
  14. Classifier: Framework :: Django :: 2.0
  15. Classifier: Framework :: Django :: 2.1
  16. Classifier: Intended Audience :: Developers
  17. Classifier: License :: OSI Approved :: BSD License
  18. Classifier: Operating System :: OS Independent
  19. Classifier: Programming Language :: Python
  20. Classifier: Programming Language :: Python :: 2
  21. Classifier: Programming Language :: Python :: 2.7
  22. Classifier: Programming Language :: Python :: 3
  23. Classifier: Programming Language :: Python :: 3.4
  24. Classifier: Programming Language :: Python :: 3.5
  25. Classifier: Programming Language :: Python :: 3.6
  26. Classifier: Programming Language :: Python :: 3.7
  27. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  28. Requires-Dist: Django (>=1.11)
  29. django-taggit
  30. =============
  31. .. image:: https://travis-ci.org/alex/django-taggit.svg?branch=master
  32. :target: https://travis-ci.org/alex/django-taggit
  33. .. image:: https://codecov.io/gh/alex/django-taggit/coverage.svg?branch=master
  34. :target: https://codecov.io/gh/alex/django-taggit?branch=master
  35. ``django-taggit`` a simpler approach to tagging with Django. Add ``"taggit"`` to your
  36. ``INSTALLED_APPS`` then just add a TaggableManager to your model and go:
  37. .. code:: python
  38. from django.db import models
  39. from taggit.managers import TaggableManager
  40. class Food(models.Model):
  41. # ... fields here
  42. tags = TaggableManager()
  43. Then you can use the API like so:
  44. .. code:: python
  45. >>> apple = Food.objects.create(name="apple")
  46. >>> apple.tags.add("red", "green", "delicious")
  47. >>> apple.tags.all()
  48. [<Tag: red>, <Tag: green>, <Tag: delicious>]
  49. >>> apple.tags.remove("green")
  50. >>> apple.tags.all()
  51. [<Tag: red>, <Tag: delicious>]
  52. >>> Food.objects.filter(tags__name__in=["red"])
  53. [<Food: apple>, <Food: cherry>]
  54. Tags will show up for you automatically in forms and the admin.
  55. ``django-taggit`` requires Django 1.11 or greater.
  56. For more info check out the `documentation <https://django-taggit.readthedocs.io/en/latest/>`_. And for questions about usage or
  57. development you can contact the
  58. `mailinglist <http://groups.google.com/group/django-taggit>`_.