Re: not able to recognize non-default python files in app + project directory
anyone on this ??
--RJ
On Thu, Jun 10, 2010 at 11:34 AM, rahul jain <jainwolverine@gmail.com> wrote:
> Hi Django,
>
> In my app directory, I splitted my models and views.py into multiple
> files since they start becoming very long but django is not able to
> recognize those files .
> It only recognizes models.py, views.py, tests.py (default ones).
>
> So In my other files If i do this
>
> from <project_name>.<app name>.models import <class name>
>
> I get this error
>
> ImportError: cannot import name <class name>
>
> If I do the same on views.py, it just works fine.
>
> Even on Eclipse I can see Django default files with different symbol
> and python files with different symbols.
>
> How to solve this problem ?
>
> --RJ
>
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home