Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread alecs
Shit! Great thanks, Tracey! You are absolutely right! I've made a stupid mistake even for a beginner! I redifined send_mail in my app :(( Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread Karen Tracey
On Tue, Jul 7, 2009 at 9:02 AM, alecs 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.se

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread alecs
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 M

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread Karen Tracey
On Tue, Jul 7, 2009 at 2:45 AM, alecs wrote: > > I'm trying to send a e-mail, but getting this error. Don't know what > to do... Any ideas? > Thanks in advance. > > def urlsend(request, username): >if request.method == 'POST': >form = SendMailForm(request.POST) >if form.is_val

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread alecs
I've found a response for a similar problem: "Seems that the session middleware not active. It should append the user object to the request object." But can't understand how to solve the problem... Actually I'm getting to a page from which I'm sending a e-mail via GET: http://172.16.23.33/alex/sen

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread alecs
Tried to embrace in [] - no effect ... http://pastebin.com/m6437076d --~--~-~--~~~---~--~~ 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 unsubscr

Re: 'unicode' object has no attribute 'user' when sending e-mail

2009-07-07 Thread Daniel Roseman
On Jul 7, 7:45 am, alecs wrote: > I'm trying to send a e-mail, but getting this error. Don't know what > to do... Any ideas? > Thanks in advance. > > def urlsend(request, username): >     if request.method == 'POST': >         form = SendMailForm(request.POST) >         if form.is_valid(): >    

'unicode' object has no attribute 'user' when sending e-mail

2009-07-06 Thread alecs
I'm trying to send a e-mail, but getting this error. Don't know what to do... Any ideas? Thanks in advance. def urlsend(request, username): if request.method == 'POST': form = SendMailForm(request.POST) if form.is_valid(): subject = form.cleaned_data['subject']