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
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
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
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
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 ? :)
--~--~-~--~~-
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
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
7 matches
Mail list logo