【发布时间】:2022-01-15 20:30:31
【问题描述】:
如果我想在 django-tables2 中使用 Bootstrap,我应该怎么做?
我应该在哪里写DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap4.html'
如果我想使用 bootstrap5,我应该怎么做?
【问题讨论】:
标签: python django bootstrap-4 django-views django-tables2
如果我想在 django-tables2 中使用 Bootstrap,我应该怎么做?
我应该在哪里写DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap4.html'
如果我想使用 bootstrap5,我应该怎么做?
【问题讨论】:
标签: python django bootstrap-4 django-views django-tables2
创建您自己的模板文件并在设置中指定。
您需要将其复制,但要使用 bootstrap5 元素
您在settings.py中指定模板
【讨论】: