I want to know if there is a way to omit name of project from import
statements. For example I have some imports in my views.py as below:

from mySite.firstApp.models import Cls1
from mySite.secondApp.models import Cls2

and I want to change them to below:

from firstApp.models import Cls1
from secondApp.models import Cls2

For now, by omitting name of project from import statements below
error is generated:
No module named firstApp.models

Is there any way that I can omit project name from import statements?

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