On Wed, Aug 12, 2009 at 7:50 AM, rekha <[email protected]> wrote:
> > Hi all, > im a newbie, developing a django online address book application. > using mod_python, apache2, postgresql for database. > > i have two tables in my database viz login_table and contact_table.. > login_table stores username and password.. contact table stores first > name, last name, phone number, email id.. i have created a login page > that accepts username and password.. i need my application to store > the password in encrypted form in the database. > how to do password encryption? i have tried some codings ,but that > doesnt work out. this is my models.py code. > "It doesn't work" followed by a bunch of code and then a request for how to fix it is frequently asking too much of your potential helpers, unless there happens to be someone in the audience who is very bored with a lot of time on their hands and looking for a puzzle to solve. Specifics of what "doesn't work" looks like (exception? passwords never match? machine catches fire?) would be the minimum you would want to provide to help people help you. In this case, though, my first question is why are you doing all of this yourself instead of using Django's built in user authentication framework? If the specifics of what is stored in the Django User model does not match what you are looking for there are ways to extend User (via profiles). If you absolutely positively need to be re-implementing all of this stuff yourself I'd suggest you look at the Django authentication code (django/contrib/auth) for some guidance on how to do it. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

