跳转到主要内容

django-taggit简易化

项目描述

https://img.shields.io/pypi/v/django-taggit-anywhere.svg https://img.shields.io/pypi/dm/django-taggit-anywhere.svg https://img.shields.io/github/license/bashu/django-taggit-anywhere.svg

使用django-taggit进行标签化的更简单方法。此外,该项目还提供了与django-taggit-helpersdjango-taggit-labels的易于使用的集成

安装

首先安装模块,最好在虚拟环境中进行。它可以从PyPI安装

pip install django-taggit-anywhere

需求

您必须已安装并配置django-taggit,有关详细信息和建议设置指令,请参阅django-taggit文档。

设置

确保项目已配置django-taggit

您需要将taggit_anywhere作为INSTALLED_APPS中的最后一项添加到项目中的settings.py文件

INSTALLED_APPS += [
    # optional integration with django-taggit-helpers
    'taggit_helpers',  # pip install django-taggit-helpers

    # optional integration with django-taggit-labels
    'taggit_labels',  # pip install django-taggit-labels

    'taggit_anywhere',  # must be last in a list
]

您需要在settings.py中设置的一个必选配置选项

TAGGIT_FOR_MODELS = [
    '<app_name>.<model_name>',
]

请参阅示例应用程序。此应用程序用于手动测试该软件包的功能。这也作为一个好的示例...

您需要Django 1.8或更高版本才能运行。它可能在较旧版本上运行,但尚未进行测试。

贡献

如果您喜欢这个模块,已经进行了Fork,或者想要改进它,请告诉我们!我们也欢迎Pull requests。:-)

许可证

django-taggit-anywhere 采用MIT许可证发布。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

django-taggit-anywhere-1.0.0.tar.gz (4.5 kB 查看哈希值)

上传时间 源代码

构建分发

django_taggit_anywhere-1.0.0-py3-none-any.whl (5.0 kB 查看哈希值)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面