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

Tailwind forms styling not applied correctly

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

Description

Hi

I've installed tailwind, crispy_forms & crispy_tailwind but the form styling doesn't seem to be working and I get huge SVG arrow appearing underneath.

![crispytailwind](https://user-images.githubusercontent.com/51359405/142699564-568f16a6-431b-460f-8fbf-3583ea18332a.png)

settings.py
```...
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'tailwind',
'theme',
'crispy_forms',
'crispy_tailwind',
'accs',
'user',
]
...
CRISPY_ALLOWED_TEMPLATE_PACKS = "tailwind"
CRISPY_TEMPLATE_PACK = "tailwind"
...
```

my_form_template.html

```
{% extends 'core/base.html' %}
{% load tailwind_filters %}

{% block content %}


Edit Payee





{% csrf_token %}
{{ form|crispy }}

{% endblock content %}
```

I've tried with/without the form tags and with/without `{% load crispy_forms_tags %}` - neither have any effect.
Any ideas what I'm missing?

Thanks

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.