On Fri, Sep 08, 2006 at 03:18:22AM +0200, Daniel Poelzleithner wrote: > in myapps/views.py: > from .models import Somemodel > > which will import from myapps/models.py Somemodel > > from ..otherapp.models import Othermodel > > imports from myapps/../otherapp/models.py -> otherapps/models.py > > This is exactly what we need for our apps to be portable :)
Wow, I never knew about that syntax. I checked the Language Reference all the way back to the 1.5 release and it is in every release. I'm surprised I've never seen that syntax used before. Thank you for pointing that out. Nate --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---