cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11.95k stars 2.87k forks source link

AttributeError: This FileResponse instance has no `content` attribute. Use `streaming_content` instead. #5196

Closed ShubhamKarala closed 1 month ago

ShubhamKarala commented 2 months ago

What happened?

AttributeError: This FileResponse instance has no `content` attribute. Use `streaming_content` instead.

I am getting this error while clicking on any media download link in django admin. I checked inside docker container and files are stored properly. I have used cookiecutter to start the project.

When i

What should've happened instead?

File should be downloaded.

Additional details

Logs:
$ cookiecutter https://github.com/cookiecutter/cookiecutter-django
project_name [Project Name]: ...
browniebroke commented 1 month ago

Weird I never seen this problem

surfgreendev commented 1 month ago

Having the same issue. Any updates?

browniebroke commented 1 month ago

Would be helpful if one of you could share the options they used to generate their project, as there is very little to go by right now. Help us help you 😄

surfgreendev commented 1 month ago

Hi there,

the Django Debug Toolbar is responsible for the Attribute Error, deactivating all options, than reactivating solved the issue. Sorry for the inconvenience.