Is it possible to combine django and tailwind css into a project?
I have a project developed on django and using the tailwind css framework which is installed via npm. Is it possible to create some configuration file for railway, so that besides running the site itself through
python manage.py runserver
, it also runs tailwind css. The command would look like this: npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
38 Replies
Project ID:
N/A
N/A
for sure
can you share your repo?
This is a private repository, so could you give me your nickname on github? And I'll invite you to
brody192
I sent an invitation to
You need this branch: https://github.com/x4zx/lyceum208/tree/v2
first things first, delete node_modules and add it to your .gitignore
This is accomplished. What about the configuration file for the railway? Also, in addition to running tailwind css itself, you will initially need to install it via:
npm install -D tailwindcss
and also install the necessary plugin: npm install -D @tailwindcss/forms
ive been working on that
will get back to you shortly
Got it. Thank you very much for your help.
any idea why its just a solid colour?
https://test-service2.up.railway.app/
Because there shouldn't be anything else but the background.
so thats good?
yep
oh okay lol
want me to create a new branch with my changes so you can review?
This is just the first time I decided to install tailwind css locally instead of through cdn. So I didn't know how to properly run it on the host
gotcha
Yes, that would be the best solution.
to be fair, i wouldnt even know how you could document what ive done
youll see in a bit
😅
Btw, I have one more little question. If the site will be able to create various posts, which may include images or videos - for this there is a special folder
media
. This will be stored all on the site itself, or should I connect some server for all multimedia?you can use storage volumes
read this while i finish up
https://docs.railway.app/reference/volumes
i may have accidently pushed into v2
It's no big deal. It's still a test branch
Thank you so much for your help! 🫡
Solution
the big changes where in railway.json
it worked?
We're about to find out.
lol
I think if it worked for you, it will work for me.
makes sense, but who knows, im neither a python nor a node dev
me too)
Is there a way to forcibly deploy without sending a commit?
I chose the v2 branch and I think it will start automatically
i think that re-fetches the repo and redeploys
Everything works great: https://lyceum208.up.railway.app
awsome
Thank you
no problem 🙂
you can remove me from your repo if you want
okay