Django static files not working

Hello!
i just deployed my app following your django tutorial: Deploy Django on Render | Render
App its working correctly but static files are not loading, i already followed your steps and added the correct path and whitenoise.

Edit: i got it to “work”, it shows images or sometimes only the css. But constantly gives 500 server error.

Static config:

STATIC_URL = '/static/'

if not DEBUG:
    STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
    STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

And sometimes it “works”, its just weird. (im checking always on the same pages, sometimes it partially works sometimes it doesnt)

Can you please help me?
thank you

Hi there,

Thanks for reaching out.

Please could you elaborate on your issue in as much detail as possible, e.g. URLs, any logs/any error messages, reproduction steps, screenshots, etc. to show the problem you’re experiencing.

If you’d prefer not to share those details on the community site, please feel free to open a ticket support@render.com

Thanks

Alan