On 9/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Waylan Limberg wrote:
> > First, you only point to the app, not the models in your app. Second,
> > you need to start from a place that is on your pythonpath. If liger is
> > on your pythonpath, then just 'liger' will work, However, it's more
> > likely that is not the case, so you'll need to do something like
> > 'yourproject.liger'
>
> Hi Waylan,
>
> thanks for the answer. Shouldn't my project dir be added to the
> pythonpath? I created my project called "liger" which resides in
> C:\www\liger

Go reread your first post (I did a few times). You said 'liger' was an
app not a project. Which is it? If it is an app but not within a
project, that could be your problem.
>
> I have another project residing under the same dir C:\www and has no
> problems in resolving my names.

Make sure your project and app dirs each have init.py files in them.
Of course, the files can be blank, but without them, you'll never be
able to import from that dir.

>
> > if neither of those work, open a python shell and try:
> >     import youproject.liger
> > or
> >     import liger
> >
> > Experiment with your path till you find something that works. Whatever
> > works is what you should use in INSTALLED_APPS.
>
> Will keep trying.
>
> Thanks,
> Lorenzo
>
>
> >
>


-- 
----
Waylan Limberg
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to