Cheers Malcom, that sounds like solid advice.

Actually, I went through a few online Python tutorials a couple of
months ago, enough to write some basic apps. I had though that that
was going to carry my through this Django adventure but obviously I
need a brush up!

Cheers,

On Nov 24, 2:01 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-11-23 at 19:31 -0800, dash86no wrote:
> > I have around 15 or so models in my system, and I find it pretty
> > tedious to have to explicitly import each and every one into my
> > forms.py etc.
>
> > Is there no way to call all models implicitly. For example:
>
> > from mysite.myapp import models
>
> Sounds like you need to do a Python tutorial or two. Django uses
> Python's normal import syntax. The above would work, for example,
> although you would have to use aliases ("... import models as
> myapp_models", for example) once you start importing models from
> multiple applications.
>
> But, seriously, if this sort of thing is news to you, combined with your
> question the other day about variable names, you should spend some time
> learning Python before complicating things by adding Django on top.
> There are a lot of Python tutorials around. The one that comes with
> Python's standard documentation is good. So is Dive Into Python
> (available online and in book form), to name but two. Trying to learn by
> osmosis is only going to get you so far; it has to be combined with a
> bit of book learning.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
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