Apologies for the "__initial__" stuff -- damn iPhone autocomplete!

On Jun 11, 11:15 am, rahul jain <[email protected]> wrote:
> It was rw-r--r-- . I also modified it to 777 by" chmod -R 777". But
> did not fix my problem.
>
> This is the error which I am getting
> ImportError: cannot import name <Model Name>
>
> --RJ
>
>
>
> On Fri, Jun 11, 2010 at 7:59 AM, Tom Evans <[email protected]> wrote:
> > On Fri, Jun 11, 2010 at 3:47 PM, rahul jain <[email protected]> wrote:
> >> Hi Tim,
>
> >> Here is my structure
>
> >> app
> >> |-- __init__.py
> >> |-- models.py (all  my models)
> >> |-- auth.py  (python functions referencing models defined in models.py)
> >> |-- blogs.py (python functions referencing models defined in models.py)
> >> |-- views.py (python functions referencing models defined in models.py)
>
> >> for auth.py and blogs.py referencing is giving import error.
>
> >> Again in these files. If I do import like
>
> >> from app.models import User then I get import error.
>
> >> For views.py I am able to easily import @above.
>
> >> --RJ
>
> > That all looks correct. Are the file permissions correct?
>
> > Can you show 'ls -l /path/to/app/' please.
>
> > Cheers
>
> > Tom
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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