Re: generating random keys/passwords
The auth module in contrib uses the make_token method of default_token_generator in django.contrib.auth.tokens for the standard password reset, so that sounds like a good choice. Another good way to get a unique, random string is uuid.uuid4(). Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: generating random keys/passwords
And to answer your more general question about email signups, have a look at Django Registration. It should have everything you need. http://bitbucket.org/ubernostrum/django-registration/wiki/Home On Fri, Aug 13, 2010 at 3:44 PM, Greg Pellywrote: > have a look at Django Command Extensions: > http://code.google.com/p/django-command-extensions/ > > sample usage: > > $ ./manage.py generate_secret_key > xr7+43ak=i^2+ommc_e6xn$6vph)_$ffb$n3kp#o1!675euxdu > > Greg > > > On Fri, Aug 13, 2010 at 3:32 PM, bagheera wrote: > >> Hi, i'm looking for python module to generate random strings used as >> activation keys to being sent to newsletter subscribers in order to activate >> their subscription. >> Any suggestions? >> >> >> -- >> Linux user >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@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. >> >> > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
Re: generating random keys/passwords
have a look at Django Command Extensions: http://code.google.com/p/django-command-extensions/ sample usage: $ ./manage.py generate_secret_key xr7+43ak=i^2+ommc_e6xn$6vph)_$ffb$n3kp#o1!675euxdu Greg On Fri, Aug 13, 2010 at 3:32 PM, bagheerawrote: > Hi, i'm looking for python module to generate random strings used as > activation keys to being sent to newsletter subscribers in order to activate > their subscription. > Any suggestions? > > > -- > Linux user > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.
generating random keys/passwords
Hi, i'm looking for python module to generate random strings used as activation keys to being sent to newsletter subscribers in order to activate their subscription. Any suggestions? -- Linux user -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.