On Tue, Jul 7, 2009 at 9:02 AM, alecs <alecs....@gmail.com> wrote:

>
> Environment:
>
> Request Method: POST
> Request URL: http://172.16.23.33/alex/urlsend/
> Django Version: 1.0.2 final
> Python Version: 2.6.2
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'filez.filezupload']
> Installed Middleware:
> ('firepy.django.middleware.FirePHPMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware')
>
>
> Traceback:
> File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in
> get_response
>  86.                 response = callback(request, *callback_args,
> **callback_kwargs)
> File "/usr/lib/pymodules/python2.6/django/contrib/auth/decorators.py"
> in __call__
>  67.             return self.view_func(request, *args, **kwargs)
> File "/var/www/filez/filezupload/views.py" in urlsend
>  186.                 auth_user = 'u...@exmpl.com', auth_password =
> 'gfhjkm_')
> File "/usr/lib/pymodules/python2.6/django/contrib/auth/decorators.py"
> in __call__
>  66.         if self.test_func(request.user):
>
> Exception Type: AttributeError at /alex/urlsend/
> Exception Value: 'unicode' object has no attribute 'user'
>
> If comment out send_mail everythin works ok.
>

So your call to send_mail is jumping into one of the auth decorators.  Do
you perhaps have your own send_mail function that you have decorated with
@login_required or something?  You are not actually calling the send_mail
function in django.core.mail, and the reason why lies somewhere in the parts
of your file containing this code that you have not shown.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to