ripe-architect-1001
06/12/2024, 6:21 PMdjango-tailwind
with a project in pants? I'm having issues getting tailwind start
to recognize my theme app.
In my BUILD
file at the root of internal_tools
I have my theme app called out as src/python/bin/internal_tools/theme:theme
In my settings.py
which is inside the project
folder I have internal_tools.theme
in the INSTALLED_APPS
array and TAILWIND_APP
is set to internal_tools.theme
as well.
Finally in my apps.py
for the theme
app I have the following:
class ThemeConfig(AppConfig):
name = "internal_tools.theme"
I'm not sure what I'm overlooking or if this is a nuance of django-tailwind
. When I run tailwind start
I get CommandError: 'internal_tools.theme' isn't a Tailwind app
happy-kitchen-89482
06/12/2024, 6:44 PMtailwind start
? Is this via pants run ...
or are you building a pex and running that?ripe-architect-1001
06/12/2024, 6:49 PMpants run /src/python/bin/internal_tools:manage -- tailwind start
happy-kitchen-89482
06/12/2024, 7:39 PMmanage.py
is notorious for stuff like that. E.g., runserver
in particular. I don't know enough about tailwind to know if it's susceptible.happy-kitchen-89482
06/12/2024, 7:40 PMpants run src/python/bin/internal_tools/manage.py -- tailwind start
?happy-kitchen-89482
06/12/2024, 7:40 PMripe-architect-1001
06/12/2024, 7:42 PMCommandError: 'internal_tools.theme' isn't a Tailwind app
.ripe-architect-1001
06/12/2024, 7:44 PMinternal_tools.theme
naming causing issues.
tailwind init
doesn't let you create an app in a subdirectory (or at least its not letting me) so I wonder if trying to have it go into the internal_tools
path is causing issues.