Django project deployment on Railway hosting missing styles and staticfiles
My django project on Railway hosting platform has no styles. Its like the staticfiles are missing. I ran the collectstatic command locally and puhed the staticfiles folder to my github but its still not working.
Admin
2023-01-07
You need to serve your own staticfiles on most platforms. Luckily there is a pip package that helps you to do that with very little configuration required, follow the steps in the link below to learn how to set one up in your Django project.
Similar Content
- How to convert an array of strings in double quotes to array of strings in single quotes in JavaScript
- Filter a foreignkey field based on logged in user in Django Admin Dashboard
- How to setup Whitenoise for a Django project
- Error: Invalid src prop (https://res.cloudinary.com) on next/image
- Vercel django error: ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.