On Sat, 2009-01-03 at 17:48 -0800, OwenK wrote:
> I have a simple function for sending activation emails to new users,
> but it always raises a ValueError of "unsupported format character
> '/' (0x2f) at index 51". You can see the function at http://dpaste.com/105078/
> . the newuser argument is a user instance, and active_key is a string
> of length 25 (only alphanumeric). I'm pretty sure the bug's in line
> four, but I don't know what's wrong with it. Any ideas?
"Unsupported format character" always means you've forgotten to put
something after the '%' sign (in this case, Python is saying that it is
seeing '/' instead of a valid character). So look at your '%' character
and notice that you are missing, for example, a following 's' ("%s/...",
not "%/...").
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---