Also, as an aside to all of that--what you're generating is in no way guaranteed to be unique. If you really need a unique string, use a UUID or hash of the primary key.
On Dec 9, 3:48 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 9 déc, 11:32, Chris <[EMAIL PROTECTED]> wrote: > > > Hello, > > when django is running on a server, I want to make a call to: > > random.random(). When I make a call to this again, I can't. I think > > this related to a similar issue datetime.datetime.now() where you > > leave off the () to get a current date each time each time you call > > it. > > I _very_ strongly suggest you take some time learning Python. In this > case, the parens are actually the call operator. Not applying this > operator results in getting a reference to the function (or whatever > callable). --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---