On Thu, May 29, 2008 at 4:06 PM, Milan Andric <[EMAIL PROTECTED]> wrote: > Anyone happen to have a strong opinion on this? Should django > applications use local imports or package based imports? Sorry if > this has been mulled over a million times.
Applications should expect to live on the Python path (which is where they end up if you're using the standard Python packaging tools), and they should use imports which assume that they're on the Python path. So, for example, if the views file in the application 'foo' needs to access a model 'Bar' in its own models package, it should write 'from foo.models import Bar'. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---