[Django]-Saving File in Model in View works but not in Celery Task


I found the issue. The whole App is running in a Docker Environment. The Django app and Celery have been run in separate containers. The problem was that Celery had no access to the Django Filesystem, so the Files got saved, but without reach of the Django Container… Very dumb error, but took me some days figuring out. So if somebody stumbles about the same issues, check your docker volumes.

Leave a comment