How to deploy static files in django to render cloud

Hello guys,

I deploy my django project to render, but the static files that contains Javascript code did not function in the live server, but works in local server, how can I solve this??

Setup STATIC_ROOT and STATIC_DIRS variables in your project/settngs.py. Make sure you provide the folders in your STATIC_ROOT in the live server.

After doing the above, run the following on the live server:
./manage collectstatic --clear

Confirm that your web server (nginx) has access to the folders you specified in STATIC_ROOT