Re: ValidationError syntax different than in Django 1.9 docs

2016-02-21 Thread Andrzej Olchawa
Many thanks to all of you for your answers. I had no idea Django has such a translation feature. I'm starting to like this technology more and more every day :-) Cheers Andrzej On Monday, February 15, 2016 at 3:37:33 AM UTC+1, James Schneider wrote: > > > On Feb 14, 2016 7:31 AM, "Andrzej

Re: ValidationError syntax different than in Django 1.9 docs

2016-02-14 Thread James Schneider
On Feb 14, 2016 7:31 AM, "Andrzej Olchawa" wrote: > > Hi guys, > > first of all, I'm new to Django and this group. > > I've just created my first Django login form by extending AuthenticationForm and overriding confirm_login_allowed method to do some extra checks and

Re: ValidationError syntax different than in Django 1.9 docs

2016-02-14 Thread yudong zheng
Did u check indentation , python indentation might be tricky. u should look for PEP8 for details . -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: ValidationError syntax different than in Django 1.9 docs

2016-02-14 Thread Sergiy Khohlov
Check localization page https://docs.djangoproject.com/en/1.9/topics/i18n/ Many thanks, Serge +380 636150445 skype: skhohlov On Sun, Feb 14, 2016 at 5:23 PM, Andrzej Olchawa wrote: > Hi guys, > > first of all, I'm new to Django and this group. > > I've just

ValidationError syntax different than in Django 1.9 docs

2016-02-14 Thread Andrzej Olchawa
Hi guys, first of all, I'm new to Django and this group. I've just created my first Django login form by extending AuthenticationForm and overriding confirm_login_allowed method to do some extra checks and raise proper exceptions. I've done that based on an example from the Django 1.9