跳转到主要内容

表格中选行用的Crispy布局对象

项目描述

Django Crispy TableSelect

CI

注意: 此软件包正在积极开发中,目前处于概念验证阶段。

Crispy布局对象,用于在django-tables2数据表中选择行。

Animation showing a table with rows that are selected all at once and then unchecked one-by-one.

待办事项列表

  • 编写文档(哦)
  • 发布到PyPI
  • 在表头中添加复选框以一次性选择/取消选择所有行。
  • 添加测试
  • 审核可访问性

开发设置

需求

  • 至少python 3.9(推荐使用pyenv管理)

使用poetry安装django应用

pyenv virtualenv 3.9 django-tableselect  # or your alternative to create a venv
pyenv activate django-tableselect
pip install poetry
make install

# Optional, when you're not creating the virtualenv yourself poetry will do it for you.
# You can activate the poetry venv like so:
source $(poetry env info --path)/bin/activate

代码检查

flake8-blackflake8-isort已安装并配置

make lint

格式化

blackisort已配置

make format

测试

默认启用Pytest和覆盖率

make test

运行django开发服务器(沙箱)

首先运行迁移

make migrate

现在创建一个超级用户

sandbox/manage.py createsuperuser

最后运行django开发服务器

sandbox/manage.py runserver

现在您可以访问Django管理网站: http://localhost:8000/admin

项目详情


下载文件

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

源代码分发

django_crispy_tableselect-0.1.0.tar.gz (578.8 kB 查看散列值)

上传时间 源代码

构建分发

django_crispy_tableselect-0.1.0-py3-none-any.whl (12.7 kB 查看散列值)

上传时间 Python 3

由以下支持