Re: Create a Celery task with Django

2019-02-13 Thread Luis Zárate
See http://django.pyexcel.org/en/latest/ Clean code could be made with this library. El miércoles, 13 de febrero de 2019, valentin jungbluth < valentin.a...@gmail.com> escribió: > Thank you Andréas ! > > I understand your comment, but it could be possible to illustrate it with my code ? I spent 1

Re: Create a Celery task with Django

2019-02-13 Thread Luis Zárate
As Andreas suggest I try to create a function that receive a file object and save the excel content there, Django response works like a file so when you have a less than 7 then pass the http response and change the headers. With celery you can store your firters on str as json file and pass to

Re: Create a Celery task with Django

2019-02-13 Thread valentin jungbluth
Thank you Andréas ! I understand your comment, but it could be possible to illustrate it with my code ? I spent 1 week and up to now I don't find any way to solve my issue and execute my Celery task :/ -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Create a Celery task with Django

2019-02-13 Thread C. Kirby
Not directly relevant to your celery question, but I would like to point you to a project of mine - https://django-modelqueryform.readthedocs.io/en/latest/ It lets you build search form that generates complex Q objects. It would replace a lot of you GET field checking and filtering on that view

Re: Create a Celery task with Django

2019-02-13 Thread Andréas Kühne
Hi, FIrst of all - try to put all the code that is the same for both calls into one method. This way you won't get any problems with that in the future when you need to update the produced excel file. You can actually use the same method in both cases because if you call the method WITHOUT delay()

Create a Celery task with Django

2019-02-13 Thread valentin jungbluth
Hello guys, I'm working on my Django project and I need to integrate Celery to do something. I'm using Django 1.11.20. *My context :* I have a template page with a search form. Once you did a search, it returns a table with search results. It's possible to export to .xls format with/without se