How to serve static files in django production envrionment while Debug=False? [closed]
So, guys I found interesting problem with serving staticfiles in Django production environment while Debug=False. Django server is developed to stopped serving staticfiles when Debug=False. For docker and K8s users, this is the perfect implementation of handling the issue.
in your Dockerfile create a mount point eg :/app for your django app and ensure to copy your app to this mount COPY . .:/app
In docker-compose.yaml file when creating your service ensure to create a static_volume that binds the :/app/static