Hello,

some times I'd like not to import a class but just write it down.

Instead of
from myproject.myapp.models import MyModel

I'd like to use
myproject.myapp.models.MyModel

But I get a NameError: name 'myproject' is not defined

Also
myapp.models.MyModel
raises a NameError: name 'myapp' is not defined

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to