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
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
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
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
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
5 matches
Mail list logo