Forums

Django + Tailwind css file not found problem

I installed Django-Tailwind following the documentation (https://django-tailwind.readthedocs.io/en/latest/installation.html) and everything work on my local computer. I built for production (python3 manage.py tailwind build), pushed to GitHub and pulled it from PythonAnywhere. Getting 404 for 'style.css'.

Tailwind put css file in theme/static/css/dist.

I put in settings.py

STATIC_URL = 'static/'
STATIC_ROOT = '/home/djtw/DJTW/theme/static'

In web app I put:

Source code: /home/djtw/DJTW

Working directory: /home/djtw/

Static files:

URL: static
Directory: /home/djtw/DJTW/theme/static

Please help.

[formatted by admin]

Do you see any errors in the error log? Especially with "Not Found: /..." message? Also, you could have a look at this help page.