Re: urls for multiple django apps?

2011-06-04 Thread James Robey
Hi, it is how imports work.. You should reconstruct your import statement to read from mysite import app1 and then refer to it's views as app1.views or app2.views, etc. Hope that helps - i'm a first time poster to django. Hello, all! On Jun 5, 2011, at 2:49 AM, raj wrote: > Hey guys, just a

Re: urls for multiple django apps?

2011-06-04 Thread Kenneth Gonsalves
On Sat, 2011-06-04 at 23:49 -0700, raj wrote: > Hey guys, just a little confused about something python related. If i > have multiple apps, and they all have a views.py file. How do I import > them correctly in my urls.py file? > I'm asking this because you get the following code: > from mysite.app

urls for multiple django apps?

2011-06-04 Thread raj
Hey guys, just a little confused about something python related. If i have multiple apps, and they all have a views.py file. How do I import them correctly in my urls.py file? I'm asking this because you get the following code: from mysite.app1 import views from mysite.app2 import views well, when