Email injection ... What's wrong ?

2006-02-19 Thread Batiste
Hello, I have some spam incoming in my mailbox... The send_mail function has to be protected ... What's wrong with my code ? def sendMail(request): from django.core.mail import send_mail if(request.POST.has_key('email')): email = request.POST['email'] else: email = '[E

Re: Some thoughts about slug and slugify

2006-01-26 Thread Batiste
Another thing... I lost hours to find the slugify function in the code... It would be nice if something like this would be possible : class Poll(meta.Model): title = meta.CharField(maxlength=30) slug_title = meta.SlugField(auto_from=self.title,maxlength=30) The slug_title field will be

Some thoughts about slug and slugify

2006-01-26 Thread Batiste
Hello, Take a look in the URLify javascript and python function javascirpt /media/js/urlify.js http://code.djangoproject.com/browser/django/trunk/django/core/template/defaultfilters.py#l66 These function are nice to make nice URI that will bring good google rank page. But there is possible to

Re: Django ImageField don't work properly

2005-12-20 Thread Batiste
Maniac a écrit : > I remember my struggles with such an issue, though I'm not sure it's the > same. > > The form data should include not only 'image' field but also > 'image_file' field. This is rendered by FormWrapper as a file upload > control and only then file's contents will be in a POST da

Django ImageField don't work properly

2005-12-19 Thread Batiste
core/validators.py in isValidImage, line 144 A link to the function : http://code.djangoproject.com/browser/django/trunk/django/core/validators.py#l144 I have already lost days on this issue. Some help will be appreciated. Thx Batiste