On 11/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > A bit of digging revealed that the project's parent directory is > getting removed from sys.path, so the import of myproj.core.management > fails (INSTALLED_APPS has "myproj.core" in it). > > I had to add ".." to sys.path at the top of manage.py to get it to > work correctly. > > Did I do something wrong?
While including the project name as part of an INSTALLED_APPS entry is legal, it isn't recommended. Malcolm recently did a good job explaining why in his blog: http://www.pointy-stick.com/blog/2007/11/09/django-tip-developing-without-projects/ If you refactor your code so that you install 'core', rather than 'myapp.core', you should find that this problem goes away. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---