Re: passing a md5 digest string into URL

2007-03-01 Thread Giuseppe Franchi
Cheers, thanks a lot Scott, you were right and i resolved ^^ I post, maybe someone could find it useful. In my view i used the base64 library. import md5, base64 ... key = md5.new(string).digest() key = base64.urlsafe_b64encode(key) validation.md5_

[help] passing a md5 digest string into URL

2007-02-27 Thread Giuseppe Franchi
Hello everyone... again. :) As i said, i need to pass in my URL a variable, wich is the result of a md5 digest. (no private information... only a validation key). Obviously i tried with (r'^users/activate_user/(?P)/', 'views.register'), (r'^users/activate_user/(?P[a-zA-Z0-9%\-]+=)/', 'views.regi

Re: Help about saving two linked instances...

2007-02-19 Thread Giuseppe Franchi
r.id but no way. How can i do? Cheers again! On 17 Feb, 15:26, "Honza Král" <[EMAIL PROTECTED]> wrote: > Hi Giuseppe, > > On 2/17/07, Giuseppe Franchi <[EMAIL PROTECTED]> wrote: > > > > > > > Hello everyone! > > I've approached Djan

Help about saving two linked instances...

2007-02-17 Thread Giuseppe Franchi
Hello everyone! I've approached Django and Python from a few time and i love them both. As i am newbie i have a noobish question. My problem is: i have to store a Resource object splitted in two tables as following: class Resource(models.Model): title = models.CharField(maxlength=100)