Thanks for the explanation,
i tried the code you provided and it worked so this solves my problem.
thank's
richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
On 1/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Thanks for your advice,
>
> I tried to use
> try:
> except DoesNotExist:
>
> and this gave a error that DoesNotExist is not defined.
Ok; I was shorthanding a little in my example. I thought the problem
was that you didn't know you could
Thanks for your advice,
I tried to use
try:
except DoesNotExist:
and this gave a error that DoesNotExist is not defined.
DatabaseError i didn't try yet thinking there was another method that
should be used.
if DatabaseError works it's oke the other error i will get will only be
the DoesNotExist
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.
Hello Django Users,
I'm building a application in Django where users have to sign in with
user name and password.
For instance a user defines a wrong password the Django will return
DoesNotExist. How can i catch this specific error.
Offcorse i can use try and except but this means i can't diffe
5 matches
Mail list logo