Review the docs at:
- How to deploy Django | Django documentation | Django
- How to deploy static files | Django documentation | Django
- How to manage static files (e.g. images, JavaScript, CSS) | Django documentation | Django.
Also, you don’t mention how you’re trying to run your Django app in your deployment environment, so I’ll just emphasize this particular lines in the docs for runserver
:
DO NOT USE THIS SERVER IN A PRODUCTION SETTING.
If you’re not using runserver, then it would help if you describe how you’re running your application and how you have it configured to serve the static files. Also note that in most common situations, you do not want your STATIC_ROOT to be anywhere within your project directory.