This is not an issue with django-tailwind but a note for anyone using it along with PyCharm and the JetBrains Tailwind CSS plug in.
I filed a bug with JetBrains, as the intellisense/code assistance was not working for Django templates inside of the 'normal' app structure of [project root]/app_name/templates/app_name/htmlfiles.html which may eventually make the steps below unnecessary.
It was found that if you create symlinks to node_modules, package.json and tailwind.config.js in the root of the Django project (same directory as manage.py) to the appropriate targets under theme/static_src that the JetBrains official Tailwind CSS plug in works perfectly with the setup described in the django-tailwind's readme.
In the root of your Django project, assuming you named your django-tailwind app 'theme'
This is not an issue with django-tailwind but a note for anyone using it along with PyCharm and the JetBrains Tailwind CSS plug in.
I filed a bug with JetBrains, as the intellisense/code assistance was not working for Django templates inside of the 'normal' app structure of
[project root]/app_name/templates/app_name/htmlfiles.html
which may eventually make the steps below unnecessary.It was found that if you create symlinks to
node_modules
,package.json
andtailwind.config.js
in the root of the Django project (same directory asmanage.py
) to the appropriate targets undertheme/static_src
that the JetBrains official Tailwind CSS plug in works perfectly with the setup described in the django-tailwind's readme.In the root of your Django project, assuming you named your django-tailwind app 'theme'
Reference to JetBrains YouTrack bug tracker: https://youtrack.jetbrains.com/issue/WEB-50354#focus=Comments-27-4829062.0-0