edoburu / django-any-imagefield Goto Github PK
View Code? Open in Web Editor NEWA switchable ImageField for third party Django applications
License: Apache License 2.0
A switchable ImageField for third party Django applications
License: Apache License 2.0
Hi everyone. Basically I get this error in admin:
TypeError at /admin/work/poster/add/
render() got an unexpected keyword argument 'renderer'
However, if I comment field in the model, everything works fine. The image field is not shown of course.
Any ideas?
Hi,
I" migrating an application from django 1.11 to 2.1+, this application uses AnyImageFied for pictures management,
I've noticed an incompatibility in wigdets; for now, an addional parameter is required for Widget.render() method: renderer
I'll propose a PR for this...
Thanks !
My Python3.4 Django1.8.5
When click this url
http://127.0.0.1:8000/admin/news/post/add/
Alert Error
python3.4/site-packages/any_imagefield/forms/widgets.py in render, line 19
model.py (error)
news_images = AnyImageField(upload_to='news_images/', default='news_images/None/no-img.jpg')
model.py (not error)
news_images = ImageField(upload_to='news_images/', default='news_images/None/no-img.jpg')
Is there any work-around to get image dimensions automatically into the model like stock Django does with the width_field=
and height_field=
options?
I'd like to create a new file/image library app that does more than just provide a browser and enhanced admin form widgets for file/image selection and upload.
I'd like the library to store additional metadata like alt text, cache file size (useful when using S3 storage backend and querying file size on a list of files is slow) and type, etc.
I'd like to either contribute, an integration class to django-any-imagefield
or for django-any-imagefield
to have some better hooks that would allow me to use a private integration class (e.g. import the backend class from a setting).
My image/file library would use a storage name field as its primary key, and provide a descriptor on the resulting FieldFile
object that is returned when you access foo.my_file_field
, that would lookup the corresponding metadata from the library via foo.my_file_field.name
.
I just wanted to check in with you if this sounds feasible and worthwhile, and if you could point out any likely pitfalls I might encounter?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.