Re: Django substitute old image of ImageFile

2014-02-22 Thread Mike Dewhirst
On 23/02/2014 9:51am, Fabrizio Alongi wrote: Any solutions?? :/ I'm interested too. I have it on my todo list to write a delete routine for my own software to get rid of uploaded files which are being replaced. I haven't decided whether to make it automatic or not. I haven't gotten around to

Django substitute old image of ImageFile

2014-02-22 Thread Fabrizio Alongi
Any solutions?? :/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Inconsistency in form_class behavior, is this a Django ticket?

2014-02-22 Thread Camilo Torres
On Saturday, February 22, 2014 6:20:35 AM UTC-4:30, Jopr wrote: > > I'm wondering whether the following should be a Django ticket and would > like your opinion on it. > > When I forget to set a value for 'template_name' using the TemplateMixin > it returns a useful exception: >

Re: Django test client encoding of JSON Booleans

2014-02-22 Thread Camilo Torres
On Friday, February 21, 2014 6:14:14 PM UTC-4:30, Daniel Smith wrote: > > I'm using Django version 1.5.5. Here is a short snippet of the test I'm > writing: > > from django.test import TestCase > > class MyTest(TestCase): > > def my_test(self): > url = ... location of my view ... >

Customize select widget in template

2014-02-22 Thread Vrooom
Hey people, *I need help customizing a "select" widget within the template.* I have a ModelForm and I am building a custom within the template. Looking at the documentation (https://docs.djangoproject.com/en/1.6/topics/forms/) I figured it out pretty quickly. One example: class="form-group">

Django substitute old image of ImageFile

2014-02-22 Thread Fabrizio Alongi
Hi, I've searched a lot for this problem, but I never found one real solution. I've a simple Django News model with an ImageField set correctly. *What I need is to delete the old image file when I upload a new image file with ImageField.* What is the best and clear solution? I've others model

Remove old image file of ImageField

2014-02-22 Thread Fabrizio Alongi
Hi, I've my django model with an ImageField. When I update (upload) a new image with the ImageField, the older image file remains in Media Folder. *How can I remove the old files when I update ImageField??* What is the best, clear, and simple approach to solve this problem? I've read a lot, but

Inconsistency in form_class behavior, is this a Django ticket?

2014-02-22 Thread Jopr
I'm wondering whether the following should be a Django ticket and would like your opinion on it. When I forget to set a value for 'template_name' using the TemplateMixin it returns a useful exception: "TemplateResponseMixin requires either a definition of 'template_name' or an implementation