timonweb / django-tailwind

Django + Tailwind CSS = 💚
https://django-tailwind.readthedocs.io
MIT License
1.46k stars 92 forks source link

whitelist classes #45

Closed AliMejbar closed 3 years ago

AliMejbar commented 3 years ago

Hi, I'm currently using django + tailwindcss and i have forms which i render manually in my forms.py like this : image so my question is how to make the classes used in my forms be in the styles.css as if i had put them in the *.html file and how to whitelist from python3 manage.py tailwind build ( i google a bit about purgecss whitlisting but didn't know how to implement it in this project), Also i'm not interested in using django crispy forms because i use a tailwind css plugin named kutty https://kutty.netlify.app/ for rendering the classes of these forms. Thank's in advance

AliMejbar commented 3 years ago

image Fixed it though i don't think it should be the way to go.