django-crispy-forms / django-crispy-forms/crispy-tailwind

Template pack tailwind not recognized using {% crispy %} tag

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
423
Forks
64
PR merge metrics
No merged PRs in 30d

Description

I already install crispy-tailwind like the documentation told me to do. But I cannot use `{% crispy form %}` tag, the error said that `crispy tag's template_pack argument should be in ('uni_form', 'bootstrap3', 'bootstrap4')`. Did I miss something?

I use:
```python
django-crispy-forms==2.4
crispy-tailwind==1.0.3
```
In additional, I also have:
```python
django-tailwind==4.2.0
```
I already registered crispy form and crispy tailwind in my installed apps, this is `my settings.py`:
```python
INSTALLED_APPS=[
"crispy_forms",
"crispy_tailwind",
...
]

CRISPY_ALLOWED_TEMPLATE_PACK = "tailwind"
CRISPY_TEMPLATE_PACK = "tailwind"
```

I also load my `article.html` like this:
```html
{% extends 'base.html' %}
{% load static i18n %}
{% load crispy_forms_tags %}

{% block head %}
{% endblock head %}

{% block content %}

{% csrf_token %}
{% crispy form %}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.