On Thu, 2009-04-02 at 19:04 -0700, Timboy wrote: > What's the best way to add users with an auto generating username? ie: > Taub.John, Smith.Tim, Smith.Tim2
You can do it however you like, since the user will never see it. Something as simple as taking the email address, replacing "@" with "AT" and "." with "DOT" might work. One thing I did for a client was take the email address, trip off everything after the "@" and then continue adding a number to the end of the username until it was unique. So if t...@example.com registered first, he would be username "tim" and t...@foo.bar.org would be username "tim1", since "tim" was already in use. Since all registration is normally done through one or two places, it only required setting up the registration form handling view and writing a management command tool to add a user manually. These days, I might also add some admin overrides, but I didn't need that at the time. 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 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 -~----------~----~----~----~------~----~------~--~---