django-star-ratings:带有单个模板标签的Django模型的星级。 兼容Python 3

时间:2021-05-14 12:43:36
【文件属性】:
文件名称:django-star-ratings:带有单个模板标签的Django模型的星级。 兼容Python 3
文件大小:92KB
文件格式:ZIP
更新时间:2021-05-14 12:43:36
Python django星级 Django的Python 3兼容评级。 使用模板标记将评级添加到任何Django模型。 请参阅完整。 由Wildfish建造。 要求 Python 3.6及更高版本。 Django 2.2以上 安装 从PyPI安装: pip install django-star-ratings 将star_ratings添加到INSTALLED_APPS : INSTALLED_APPS = ( ... 'star_ratings' ) 同步您的数据库: python manage.py migrate 将以下内容添加到您的urls.py中: path('ratings/', include('star_ratings.urls', namespace='ratings')), 确保'django.core.context_processors.r
【文件预览】:
django-star-ratings-develop
----MANIFEST.in(250B)
----.travis.yml(4KB)
----README.rst(8KB)
----star_ratings()
--------models.py(6KB)
--------app_settings.py(1KB)
--------apps.py(649B)
--------templates()
--------checks.py(663B)
--------locale()
--------compat.py(174B)
--------static()
--------__init__.py(403B)
--------migrations()
--------signals.py(125B)
--------views.py(2KB)
--------admin.py(2KB)
--------templatetags()
--------urls.py(311B)
--------forms.py(982B)
----docs()
--------conf.py(5KB)
--------make.bat(823B)
--------Makefile(616B)
--------index.rst(205B)
----package.json(1KB)
----requirements.in(172B)
----tests()
--------test_app_settings.py(4KB)
--------test_rating_admin.py(2KB)
--------models.py(758B)
--------test_rating.py(6KB)
--------conftest.py(3KB)
--------test_user_rating_manager.py(4KB)
--------test_views_rate.py(25KB)
--------__init__.py(0B)
--------migrations()
--------test_user_rating.py(3KB)
--------test_user_rating_admin.py(1KB)
--------test_template_tags_ratings.py(16KB)
--------urls.py(171B)
--------strategies.py(235B)
--------base.py(529B)
--------fakes.py(1KB)
--------test_rating_manager.py(10KB)
----LICENSE(2KB)
----CHANGELOG.txt(3KB)
----setup.cfg(276B)
----requirements.txt(2KB)
----setup.py(2KB)
----.gitignore(157B)
----demo()
--------star_ratings(16B)
--------selenium_tests()
--------templates()
--------requirements.txt(60B)
--------manage.py(247B)
--------demo()
----scripts()
--------runseleniumtests.sh(234B)
--------runtests.py(2KB)
--------runwithcoverage.sh(140B)
--------ci_runtests.sh(412B)

网友评论