Comments (4)
For example I'm using django-minio-storage and their implementation of the Storage
class is defined here. I would adapt your implementation to use the file storage API described in the docs instead of relying on Pathlib
.
django-formset/formset/upload.py
Lines 109 to 118 in 38d20ca
This part could probably simplified by using the File storage API instead of doing these operations by yourself on the filesystem. Your unit test would only use this API as well and it would make your package compatible with any storage implementation. What do you think?
from django-formset.
Unfortunately I do not have any configuration using S3. Can you please point me onto some documentation where I can emulate the S3_BOTO behaviour for my unit tests. I don't want to use AWS in my unit tests.
How would you fix that?
from django-formset.
Could you please check with HEAD from main branch.
I did not try django-minio-storage or any other storage class. However I now use the proper file storage API. Thanks for reporting.
Would you make the storage class for this file upload configurable, or just keep the current default_storage
?
from django-formset.
It's working with django-minio-storage, but I dot not explicitely use the file upload feature so far. That was the import that was failing for me.
I never use multiple storage backends so no need for it to be configurable for me.
Thank you very much for your fast fix 👍
from django-formset.
Related Issues (20)
- File upload using attribute `accept = image/jpeg`
- Editing model with many-to-one relationship HOT 15
- New release needed HOT 1
- Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. HOT 3
- Not possible to set custom classes on input fields with the tailwind renderer HOT 1
- Problem with cyrillic in selectize widget. HOT 1
- loosing borders in selectize widget after pressing button "Reset to initial" in bootstrap mode HOT 10
- Still have the problem with new release 1.3.9. It happened when I use selectize widget and when I use active search in the widget and it tries to get answer from backend to get new list of options. HOT 6
- ColorField Support HOT 2
- df-disable="true" being ignored HOT 2
- BooleanField shows label twice HOT 2
- Style problem in Selectize widget. HOT 2
- Selectize programmatic value selection. HOT 10
- Event listener for add sibling button HOT 4
- DualSelector regression on v1.3.10 HOT 8
- Submit button shows bummer symbol after okay symbol. HOT 3
- The size of the input window does not change as the window size changes HOT 1
- Selectize widget in sortable FormCollection
- Labels in widget FileUpload shall be configurable
- Render form will always render default template HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-formset.