{ "info": { "author": "Igor `idle sign` Starikov", "author_email": "idlesign@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "django-sitecats\n===============\nhttps://github.com/idlesign/django-sitecats\n\n.. image:: https://idlesign.github.io/lbc/py2-lbc.svg\n :target: https://idlesign.github.io/lbc/\n :alt: LBC Python 2\n\n----\n\n.. image:: https://img.shields.io/pypi/v/django-sitecats.svg\n :target: https://pypi.python.org/pypi/django-sitecats\n\n.. image:: https://img.shields.io/pypi/l/django-sitecats.svg\n :target: https://pypi.python.org/pypi/django-sitecats\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-sitecats/master.svg\n :target: https://coveralls.io/r/idlesign/django-sitecats\n\n.. image:: https://img.shields.io/travis/idlesign/django-sitecats/master.svg\n :target: https://travis-ci.org/idlesign/django-sitecats\n\n.. image:: https://landscape.io/github/idlesign/django-sitecats/master/landscape.svg?style=flat\n :target: https://landscape.io/github/idlesign/django-sitecats/master\n\n\nDescription\n-----------\n\n*Django reusable application for content categorization.*\n\nNay, - you say, - all that tags business lacks structuring.\n\nThis application is just about structuring your data: build categories hierarchy and link your site entities to those categories.\n\n\n.. code-block:: python\n\n # Somewhere in views.py\n from django.shortcuts import render, get_object_or_404\n\n # Suppose Article model has sitecats.models.ModelWithCategory class mixed in.\n from .models import Article\n\n\n def article_details(self, request, article_id):\n \"\"\"See, there is nothing special in this view, yet it'll render a page with categories for the article.\"\"\"\n return self.render(request, 'article.html', {'article': get_object_or_404(Article, pk=article_id)})\n\n def article_edit(self, request, article_id):\n \"\"\"Let's allow this view to render and handle categories editor.\"\"\"\n article = get_object_or_404(Article, pk=article_id)\n\n # Now we enable category editor for an article, and allow users\n # to add subcategories to `language`, and `os` categories\n # (suppose we created them beforehand with Admin contrib),\n # and link this article to them.\n article.enable_category_lists_editor(\n request,\n editor_init_kwargs={'allow_new': True},\n additional_parents_aliases=['language', 'os']\n )\n\n form = ... # Your usual Article edit handling code will be here.\n\n return render(request, 'article.html', {'article': article, 'form': form})\n\n\n\nTemplate coding basically boils down to ``sitecats_categories`` template tags usage:\n\n.. code-block:: html\n\n \n {% extends \"base.html\" %}\n {% load sitecats %}\n\n {% block contents %}\n \n \n\n

{{ article.title }}

\n
\n {% sitecats_categories from article %} \n
\n \n {% endblock %}\n\n\nRead the docs, ``sitecats`` can do more.\n\n\nDocumentation\n-------------\n\nhttp://django-sitecats.readthedocs.org/\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/idlesign/django-sitecats", "keywords": "", "license": "BSD 3-Clause License", "maintainer": "", "maintainer_email": "", "name": "django-sitecats", "package_url": "https://pypi.org/project/django-sitecats/", "platform": "", "project_url": "https://pypi.org/project/django-sitecats/", "project_urls": { "Homepage": "https://github.com/idlesign/django-sitecats" }, "release_url": "https://pypi.org/project/django-sitecats/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Django reusable application for content categorization.", "version": "1.0.0" }, "last_serial": 4702915, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b5aae84ce111607372bd08a0ae49222a", "sha256": "a59e6aebb8d49835a2728620b0e2781f28a49167fec10c001cda99b6bed494e9" }, "downloads": -1, "filename": "django-sitecats-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b5aae84ce111607372bd08a0ae49222a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25541, "upload_time": "2014-09-12T08:04:39", "url": "https://files.pythonhosted.org/packages/0e/2d/c6ecf7a08078054ff4f53fb83e97e8636999e936e6739794fd63a4373381/django-sitecats-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8480ac4df587ea03c41eefa8b690bfde", "sha256": "bea6e1c75ed2a5fc2873a1608816b53113b22a4e5a17c59710e518b09cc69ccd" }, "downloads": -1, "filename": "django-sitecats-0.2.0.tar.gz", "has_sig": false, "md5_digest": "8480ac4df587ea03c41eefa8b690bfde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27745, "upload_time": "2014-09-14T02:06:52", "url": "https://files.pythonhosted.org/packages/7e/91/0e0e992c987c2c001d3d753535f32c4390e0870faa96c870df56a59b59bf/django-sitecats-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "00b1fcc54756573f9c77a852e1ab1951", "sha256": "0d9fce3efe59297b95f723dcd7fbf8eccee565f17b21d9665fae72dd7a164b3b" }, "downloads": -1, "filename": "django-sitecats-0.3.0.tar.gz", "has_sig": false, "md5_digest": "00b1fcc54756573f9c77a852e1ab1951", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29905, "upload_time": "2014-09-23T06:06:23", "url": "https://files.pythonhosted.org/packages/b3/7f/fdb94abf60f30b92681eca0cc69ae12aa2e1bf810da442417ddf417f8c8b/django-sitecats-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "698dd5df439ed6a1675362422af99be7", "sha256": "c84d743f15590fbb265c1159df64718391e584a444230b47fbcad5c2b5f0467f" }, "downloads": -1, "filename": "django-sitecats-0.3.1.tar.gz", "has_sig": false, "md5_digest": "698dd5df439ed6a1675362422af99be7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29925, "upload_time": "2014-09-23T09:45:08", "url": "https://files.pythonhosted.org/packages/24/d1/65e5da15fbd5b89a8c99cfc7d6eeadc5386eba8c6ca079f53caf3beb41f7/django-sitecats-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "7d481bd47378c8e58b591dbb89170d60", "sha256": "e210e7ed3730cee7fe9ba35fc50a3051522e4983ee841e5059f9438073bbeeb3" }, "downloads": -1, "filename": "django-sitecats-0.4.0.tar.gz", "has_sig": false, "md5_digest": "7d481bd47378c8e58b591dbb89170d60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32434, "upload_time": "2014-12-06T08:11:22", "url": "https://files.pythonhosted.org/packages/45/ad/f719ada441d386905937b4606a4988bdb5ee18e2edbd0dd375952bfde38e/django-sitecats-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "6c9f97cbb5a391680c2403024a02d71e", "sha256": "1e1dbc216e7180308592f00c2c8a043344aef1da17eef55f8bdcd9fb39030c25" }, "downloads": -1, "filename": "django-sitecats-0.5.0.tar.gz", "has_sig": false, "md5_digest": "6c9f97cbb5a391680c2403024a02d71e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34109, "upload_time": "2015-06-18T14:14:19", "url": "https://files.pythonhosted.org/packages/3c/55/6dd97245ce700ba33169c8c5325f2abba1c0a9220b6208e87577fe61601b/django-sitecats-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "d70a661fae71dfc1413e09795a86fe19", "sha256": "ea9bd9aaea25c8be846705150283a67731abb8da4133de15c700b1db8be7c027" }, "downloads": -1, "filename": "django-sitecats-0.6.0.tar.gz", "has_sig": false, "md5_digest": "d70a661fae71dfc1413e09795a86fe19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38891, "upload_time": "2015-08-02T08:03:18", "url": "https://files.pythonhosted.org/packages/eb/8a/f1cc8e809c55347dd878079b4cf2628136f076caf17f32622c646685cd45/django-sitecats-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "19284f1e343a441a6ff34fa7c6069a61", "sha256": "dd3bf1b0b454080da944066308ae6ed849fe845bff50e2eb4936d422431d5e04" }, "downloads": -1, "filename": "django-sitecats-0.6.1.tar.gz", "has_sig": false, "md5_digest": "19284f1e343a441a6ff34fa7c6069a61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38994, "upload_time": "2015-12-22T13:41:36", "url": "https://files.pythonhosted.org/packages/ac/92/5be4082323f79e457fa26e8d267822caf178202040b11285a009195ad807/django-sitecats-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "86671ce095f4e01196422b875f3b7835", "sha256": "48c87c65829048df2ef87d722fb3a620ef5881f92954712ff83a4cb609cc330c" }, "downloads": -1, "filename": "django_sitecats-0.6.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "86671ce095f4e01196422b875f3b7835", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 39191, "upload_time": "2016-12-18T11:17:02", "url": "https://files.pythonhosted.org/packages/69/90/f75fd774e6abe09605f2f68cf4f51e4d28325deac126f651b86fd5c3ba07/django_sitecats-0.6.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be07db2cdf5fc0beafcbaa30d0d92446", "sha256": "ead70b264e2911bf0abeabdc7e2d4c9b811b8ba7c6c754bc01e2e99983e3d6fc" }, "downloads": -1, "filename": "django-sitecats-0.6.2.tar.gz", "has_sig": false, "md5_digest": "be07db2cdf5fc0beafcbaa30d0d92446", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39241, "upload_time": "2016-12-18T11:17:00", "url": "https://files.pythonhosted.org/packages/eb/a7/0c3af7018f6e56adf3c93f0565c9a5397be8f270e207c8acb43bd43f22b9/django-sitecats-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "c4bc25cda91d40fc59929b7b4c5c123a", "sha256": "1cfe4203ae19e889462e961f4bd8c9c2f4c988a8ba92a3e61f3505d073ae9504" }, "downloads": -1, "filename": "django_sitecats-0.6.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c4bc25cda91d40fc59929b7b4c5c123a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 39287, "upload_time": "2017-04-15T04:31:22", "url": "https://files.pythonhosted.org/packages/4b/f1/66840bc6a43cab24e07055066f9dd324f0fde42d07454d1f69acca2cfb6c/django_sitecats-0.6.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ce2702d30b644447c664fd1c9857533", "sha256": "1090bb45edbcce1764bdd6b1037323de81026baf954e6bb785f61b357a2247ff" }, "downloads": -1, "filename": "django-sitecats-0.6.3.tar.gz", "has_sig": false, "md5_digest": "0ce2702d30b644447c664fd1c9857533", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39347, "upload_time": "2017-04-15T04:31:20", "url": "https://files.pythonhosted.org/packages/7a/9e/2a36ef263862ee8f93364a7d05d3560ef689c766a7f050f09dd8f450da06/django-sitecats-0.6.3.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "7b61835e6dddd399c1fa20accbbb6499", "sha256": "26ca6d0d8b622871358df21026514e3ab8e2c901b91b3a1fb782b64edc63651d" }, "downloads": -1, "filename": "django_sitecats-0.7.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b61835e6dddd399c1fa20accbbb6499", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 37347, "upload_time": "2017-12-16T03:41:09", "url": "https://files.pythonhosted.org/packages/39/ed/b5478180d3b933909bd29bf9284e516c16f947cc75588874dc13ab6a0adc/django_sitecats-0.7.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f65819f78ebbc2bcab8547364e4a1ad", "sha256": "47751f3bbf4b5b631ba0c4d219743955396886cd53538ec46e4fa686818b8145" }, "downloads": -1, "filename": "django-sitecats-0.7.0.tar.gz", "has_sig": false, "md5_digest": "3f65819f78ebbc2bcab8547364e4a1ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37570, "upload_time": "2017-12-16T03:41:07", "url": "https://files.pythonhosted.org/packages/ad/38/82abd78d3cf3ee9de3ebd246f41bf9024b2d8b69a32a2bc65593df291160/django-sitecats-0.7.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "7798180dccb5a91a31e12220e7b452bd", "sha256": "c13e3158f1985c0e6a19c03a334f797fba0f969289852bb7d9d461b8d5257391" }, "downloads": -1, "filename": "django_sitecats-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7798180dccb5a91a31e12220e7b452bd", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 36952, "upload_time": "2019-01-16T11:38:37", "url": "https://files.pythonhosted.org/packages/96/ff/b8ef0effc8e344d5712f8cc3279a2b265fdf7dc3d76e19c4e4aa45f4b48d/django_sitecats-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "736e75992cbd5408546be0dabd75ae3d", "sha256": "06e30bf2306399c085525fb9972ee0a17e30b70b0d008d6560898d6b6adad106" }, "downloads": -1, "filename": "django-sitecats-1.0.0.tar.gz", "has_sig": false, "md5_digest": "736e75992cbd5408546be0dabd75ae3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37474, "upload_time": "2019-01-16T11:38:35", "url": "https://files.pythonhosted.org/packages/92/bf/da2c35ede1bd3a2defa969e0b8d73122cc24741d8e65a9eb311f689c61aa/django-sitecats-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7798180dccb5a91a31e12220e7b452bd", "sha256": "c13e3158f1985c0e6a19c03a334f797fba0f969289852bb7d9d461b8d5257391" }, "downloads": -1, "filename": "django_sitecats-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7798180dccb5a91a31e12220e7b452bd", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 36952, "upload_time": "2019-01-16T11:38:37", "url": "https://files.pythonhosted.org/packages/96/ff/b8ef0effc8e344d5712f8cc3279a2b265fdf7dc3d76e19c4e4aa45f4b48d/django_sitecats-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "736e75992cbd5408546be0dabd75ae3d", "sha256": "06e30bf2306399c085525fb9972ee0a17e30b70b0d008d6560898d6b6adad106" }, "downloads": -1, "filename": "django-sitecats-1.0.0.tar.gz", "has_sig": false, "md5_digest": "736e75992cbd5408546be0dabd75ae3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37474, "upload_time": "2019-01-16T11:38:35", "url": "https://files.pythonhosted.org/packages/92/bf/da2c35ede1bd3a2defa969e0b8d73122cc24741d8e65a9eb311f689c61aa/django-sitecats-1.0.0.tar.gz" } ] }