On 1/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Offcorse i can use try and except but this means i can't differentiate > between certain errors for instance when the Db is offline it will > raise another Error. The action i wan't to respond is different from > wrong username password.
Sounds like you need to read up on try-except in Python. You can catch exceptions on a per-name basis: try: # Log in user except DoesNotExist: # Handle bad username/password except DatabaseError: # Handle database errror except # Handle all other errors Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

