ninapavlich / django-batch-uploader Goto Github PK
View Code? Open in Web Editor NEWDjango batch uploading
License: MIT License
Django batch uploading
License: MIT License
Hi,
This is not a bug but a feature request. Here, I intend to use the batch uploader to upload pictures in the propper category and with the propper date. 99% percent of the time, the whole batch is for the same date and the same category, making the "default fields" much more important for the user than the individual fields.
The current layout places the default fields at the bottom and in a folded div, making it hard to see, especially when there's a long list of uploads.
Thanks !!
See this project for reference: https://blueimp.github.io/jQuery-File-Upload/
Hi,
I migrated to django 1.9, and now I get the error below.
The fix is probably easy, see django-mptt/django-mptt@a9199d5
Thanks !
ImportError at /admin/ModuleAppuiReconstruction/chantierphoto/add/
cannot import name 'EMPTY_CHANGELIST_VALUE'
Traceback:
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
149. response = self.process_exception_by_middleware(e, request)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/contrib/admin/options.py" in wrapper
541. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django/contrib/admin/sites.py" in inner
244. return view(request, *args, **kwargs)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django_batch_uploader/admin.py" in add_view
60. response = self.batch_upload_response(request)
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django_batch_uploader/admin.py" in batch_upload_response
191. value = str(self.get_field_contents(output_field, obj))
File "/home/olivier/virtualenvs/UrbaDatabase/lib/python3.4/site-packages/django_batch_uploader/admin.py" in get_field_contents
134. from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE
If possible, display what % uploaded an image is
Hi,
Currently, the widgets of the batch uploader form default fields are not the same than on the regular admin page.
It's the case for at least :
Note that this happens using grappelli, but from the screenshots I see you use it too.
Thanks !
Hi,
With django 1.8.5, python 3.4.3, grappelli 2.7.1, after installing following the instructions and opening the admin batch upload page, I get :
TemplateDoesNotExist at /admin/ModuleAppuiReconstruction/chantierphoto/
for the template
admin/batch_change_list.html
I don't know anything about pip packages, but I guess the application isn't installed properly, since I can't find the batch_change_list.html file in my python libraries folder.
I made sure I have added the module in settings.py.
If I copy the templates folder to one of my app, the page loads correctly.
Hi,
When hitting the "start uploading" button, I get a javascript error :
(index):99 Uncaught TypeError: Cannot read property 'indexOf' of undefined
This is the row var is_image = media_file_type.indexOf('image') >= 0;
of the renderResponse(data)
function. It seems the response is in plain html, and not json !
The upload still works if all the fields are set correctly, but only for the first image, and with no feedback at all.
@ninapavlich I'd love to be able to use this in the upcomming days, should I look if I manage to fix it myself, or is it an easy fix that you could take care of ?
Hi,
Just installed this, followed the instructions but I keep getting this error when trying to save a new batch. Not sure how to resolve it. I've traced the line but the issue seems to be going over my head. Any ideas?
File "/src/apps/django_batch_uploader/admin.py", line 69, in add_view
response = self.batch_upload_response(request)
File "/src/apps/django_batch_uploader/admin.py", line 174, in batch_upload_response
output_fields = flatten_fieldsets(self.fieldsets)
File "/lib/python2.7/site-packages/django/contrib/admin/utils.py", line 112, in flatten_fieldsets
for name, opts in fieldsets:
TypeError: 'NoneType' object is not iterable
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.