After deploying the images are not showing and some pages have broken css.
What could be the problem
27 Replies
Project ID:
3fec6ca2-75a4-4a29-a64a-954602782e2c
3fec6ca2-75a4-4a29-a64a-954602782e2c
what tech stack
python django
is your start command running collectstatic?
I run the command locally before pushing to GitHub. On the start command to sure what you are asking about.
I added this railway.json file. it builds and deployed successfully. But now i get application failed to respond.
it has now changed to crashed
error logs please
no any error i can see
in deploy logs
nothing too.
deploy again
now there are errors
full deploy logs please
you need to modify the start command to start your app, you do not have a
mysite
folder, change that for what your actual folder is named (the folder that has settings.py)my bad I just changed that file without looking into details. Sorry. I have just been having hard time deploying this app for the last few days
its up now but the images and css it not working still
are you using whitenoise correctly?
https://whitenoise.readthedocs.io/en/latest/django.html
all the white noise settings are according to this file. except for the static storage. am using Django static storage.
white noise storage leads to internal server error with no error code or anything else. django storage works well in the local testing.
follow that doc so you can setup whitenoise properly
ok.
updated the settings file according to this but no result. I have this error now.
that just looks like a code issue now
ok thanks alot