You're passing your template variable `classcolors` to the template
filter `random`. Looking at the code for random.py:

File "/usr/lib/python2.5/random.py", line 248, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if
seq is empty
IndexError: string index out of range

As the comment suggests, if `seq` is empty, raise an IndexError. So it
appears that  `classcolors` is an empty string.

On Mar 28, 7:05 pm, Ramdas S <ram...@gmail.com> wrote:
> Can someone advise? I have the same code working in several web sites. But
> since moving to 10177, I am getting this error. It sometimes works in Dev
> server, in Apache its been a problem
>
> http://dpaste.com/20529/
> --
> Ramdas S
> +91 9342 583 065
--~--~---------~--~----~------------~-------~--~----~
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