7👍
✅
No, there isn’t. And for good reason. It’s horribly inefficient to store and serve images from the database. Store them on the filesystem, and serve them directly from Apache.
4👍
There is a nice solution here: http://djangosnippets.org/snippets/1305/ it stores content in a database blob.
1👍
It seems there is no built-in BlobField
in Django. However, there is one available here. I’m not sure if it supports all backends, but it might work for you. With that, you could write up a form & view that uploades the image as an attachment and stores it as a blob in the database.
- Django: how to change the choices of AdminTimeWidget
- How do I get django runserver to show me DeprecationWarnings and other useful messages?
- I have a OneToOne relationship between two objects of the same class in a Django app. Is it possible to enforce the uniqueness of this relationship?
- Django – template context processors – breaking my app
- Always False Q object
Source:stackexchange.com