Re: accessing views outside a module
I think this depends on how you set your python path.
Mine is usually set to a virtualenv AND to /foo/bar/yourproject/ (the path to your project).
That means you can do the following imports in any file:
from a.views import yourview
from b.views import yourview
Best regards,
Martin
-- On Sun, Jun 5, 2011 at 9:28 AM, Bobby Roberts <tchendrix@gmail.com> wrote:
let's say i've got two apps in my project... app a and app b
how do i access views in app a from app b views?
--
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.
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