Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage in subdirectory with Pants #201

Open
nvonbenken opened this issue Jun 13, 2024 · 0 comments
Open

Usage in subdirectory with Pants #201

nvonbenken opened this issue Jun 13, 2024 · 0 comments

Comments

@nvonbenken
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant