Unable to export images from django model to the excel sheet

2020-07-04 Thread Ashutosh Mishra
I am creating an api to export image from django model to the excel sheet.But unable to do that,while doing that geeting only the root path of images.Please help it's uergent. models.py class Task(models.Model): Id=models.IntegerField()

Re: Idea for Rollback Migration Rules

2020-07-04 Thread Josh Smeaton
I run into the problem you're trying to solve often and it's quite frustrating. I don't think storing the migration text in the database is the right solution - I don't know why, but it just *feels* wrong. Such a rollback would only support SQL based migrations - any RunPython migration

Re: Unable to export images from django model to the excel sheet

2020-07-04 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely

Re: Idea for Rollback Migration Rules

2020-07-04 Thread Lorenzo Peña
See if this solves part of the problem https://github.com/lorinkoz/django-unmigrate -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send

Re: Idea for Rollback Migration Rules

2020-07-04 Thread Dwight Gunning
The first case is definitely a source of friction for me too. Django management commands could help but it's still up to the developer to remember to run them. I'd prefer to have the VCS identify and help resolve these situations right when they arise. The second case seems to be discouraged