-
Notifications
You must be signed in to change notification settings - Fork 91
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
Incorporating django-tailwind into existing dockerized cookiecutter-django project? #152
Comments
You'll have to add FWIW you might be better off following the Django official instructions to start a new project. |
Hi, Thanks for taking the time to reply. I have added tailwind to my settings.py - it's more the set up of django-tailwind within docker that I'm struggling with. I'm not sure what you mean by looking at the official instructions - as far as I'm aware, this is not covered. If you mean starting a new project completely and dropping the using of cookiecutter-django, I have backend uses for cookiecutter-django which means this is not really feasible. |
Ah, I read the description in a hurry, sorry about that. I think the important bits for the
The example django-tailwind/example/docker-compose.yml Lines 17 to 22 in 37b81f6
|
Thanks for the detail here, I really appreciate you taking the time to help me out. I have added the line installing nodejs; however when I try and run the 2nd line (tailwind install), I get an error saying npm hasn't been installed or cannot be found. Any ideas why this might be or how to resolve it?
|
@BenAkko Looks like I've missed a line. The example django-tailwind/example/Dockerfile Lines 7 to 8 in 37b81f6
Then it installs the |
No, this solution doesn't work.
ERROR:
SOLUTION: You have to use
|
However I am still left with
|
Hi all,
Apologies for what is likely a very simple question, I am pretty new to Docker and am struggling to integrate django-tailwind into my docker project, which was created using cookiecutter-django.
I have tried altering my Dockerfile and local.yml file to follow the Example dockerfiles on the Example app on the django-tailwind github repo but haven't been able make it work. The instructions beyond the example app are not very detailed.
I have quoted my Dockerfile and local.yml file below; would someone be able to advise on what changes I need to make in order to incorporate django-tailwind, or point me in the direction of information that would help me to do it myself?
Thanks for any help anyone can offer!
local.yml
Dockerfile for django:
The text was updated successfully, but these errors were encountered: