Yep, you found it .... a missing comma.....cheers
Ian Clelland-2 wrote: > > On Mon, Nov 21, 2011 at 9:37 AM, MikeKJ <mike.jo...@paston.co.uk> wrote: > >> >> Traceback >> >> string indices must be integers, not str >> >> Request Method: POST >> Request URL: http://newrutherford.paston2.webfactional.com/question/ >> Django Version: 1.3.1 >> Exception Type: TypeError >> Exception Value: >> >> string indices must be integers, not str >> >> Exception Location: >> /home/paston2/webapps/newrutherford/newrutherford/question/views.py in >> question, line 31 >> > > Line 31 is the problem --- and we can't tell which one is line 31 from the > code you've posted here. > > This line looks wrong to me: > > send_mail(settings.EMAIL_SUBJECT_PREFIX +"Email from the > > question form", msg_header+msg_middle, settings.DEFAULT_FROM_EMAIL > > [settings.CONTACT_EMAIL_TO], fail_silently=False) > > > Maybe it's a word-wrapping issue, but > "settings.DEFAULT_FROM_EMAIL[settings.CONTACT_EMAIL_TO]" > looks like you're trying to use a string to index into another string > variable. > > Ian > > -- > Regards, > Ian Clelland > <clell...@gmail.com> > > -- > 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. > > > -- View this message in context: http://old.nabble.com/string-indices-must-be-integers%2C-not-str-tp32871097p32871170.html Sent from the django-users mailing list archive at Nabble.com. -- 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.