Re: localflavor - UKPostcodeField

2007-08-21 Thread MikeHowarth
Thats a very valid point Malcolm and something I'll implement! On Aug 21, 12:22 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-08-21 at 02:20 -0700, MikeHowarth wrote: > > So really I'd be better off using: > > > from django.contrib.localflavor.uk import forms > > If, in the sam

Re: localflavor - UKPostcodeField

2007-08-21 Thread Malcolm Tredinnick
On Tue, 2007-08-21 at 02:20 -0700, MikeHowarth wrote: > So really I'd be better off using: > > from django.contrib.localflavor.uk import forms If, in the same file, you also do "import newforms as forms", things are going to go pear-shaped pretty quickly, so be careful. My gut reaction, if I'm

Re: localflavor - UKPostcodeField

2007-08-21 Thread MikeHowarth
So really I'd be better off using: from django.contrib.localflavor.uk import forms On Aug 21, 9:35 am, Collin Grady <[EMAIL PROTECTED]> wrote: > The same question applies though :) > > You didn't import the "forms" bit, you imported the field directly, so > you should just be using it as UKPostc

Re: localflavor - UKPostcodeField

2007-08-21 Thread Collin Grady
The same question applies though :) You didn't import the "forms" bit, you imported the field directly, so you should just be using it as UKPostcodeField :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: localflavor - UKPostcodeField

2007-08-21 Thread MikeHowarth
Sorry that was a typo on my part Colin Should have read: forms.UKPostcodeField() Think its time for a coffee! On Aug 21, 9:19 am, Collin Grady <[EMAIL PROTECTED]> wrote: > You're importing UKPostcodeField - so why are you trying to use > models.UKPostcodeField ? :) --~--~-~--~~-

Re: localflavor - UKPostcodeField

2007-08-21 Thread Collin Grady
You're importing UKPostcodeField - so why are you trying to use models.UKPostcodeField ? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goo

localflavor - UKPostcodeField

2007-08-21 Thread MikeHowarth
Hi I came across localflavors and would like to use the UKPostcodeField for post code validation. However when I try to import this I'm getting ViewDoesNotExist errors. Within my forms.py I'm importing like so: from django.contrib.localflavor.uk.forms import UKPostcodeField I'm then referencin