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 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 importing "extra" stuff like this and it's using
> a common name, is to immediately, defensively alias it to something like
> uk_forms so that even three months from now, I don't spend forever
> trying to debug why "forms" doesn't contain what I expect it to.
>
> Malcolm
>
> --
> A clear conscience is usually the sign of a bad 
> memory.http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to