django-tailwind icon indicating copy to clipboard operation
django-tailwind copied to clipboard

Usage in subdirectory with Pants

Open nvonbenken opened this issue 8 months ago • 0 comments

Hi there,

I have a pants monorepo and I'm having trouble getting django-tailwind to play nice with it. Trying to track down what the issue could be.

It looks like django-tailwind is not playing nice with my theme app being in a subdirectory.

I have my django project, named internal_tools, and inside of that a theme app. The theme app was originally created as part of the django project when it was standalone and has now been migrated to the monorepo.

I have my TAILWIND_APP set to internal_tools.theme in my settings.py but I'm getting the error: 'internal_tools.theme' isn't a Tailwind app

tailwind init works for me but I've found I cannot create a new tailwind app in a subdirectory to try to test out clean theme app. It always goes into the root folder, even if I run the command (pants run /path/to/django/manage.py tailwind init) from the directory I want the app to be in.

If you have any insight into this or how I may be able to work around it, it would be much appreciated. Thanks.

nvonbenken avatar Jun 13 '24 18:06 nvonbenken