On Thu, Oct 8, 2009 at 10:52 AM, Jorge Ercoli <ror...@gmail.com> wrote:
> > If i have, my Proj1 with mi App1 and your Model, and in the Views.py i > should import a model from an App of another Project : > > <from Proj2.App1.models import * > > > What's with the brackets? Are you actually including the brackets in your .py file? That's not valid syntax so would cause an error. Also, you mention "App1" as being part of your "Proj1" and "App" being part of "another" project, so it looks a little odd that you are trying to import "App1", not "App", from "Proj2" (assuming "Proj2" is the other project). If you would use the actual names you are using things might be much clearer. You've either confused things in translating to "generic" names or you are actually trying to reference apps using incorrect packages, or.... > this command cause an error, Why do you make us guess what the error might be? You're far more likely to get help if you tell us exactly what error you get. Also, since you haven't been clear on what exactly you are doing, specifics of the error might give us a clue what your code is really doing. > i'm tried to put "Proj2.App1" in Proj1 > settings.py Installed-Apps; but not work. > You may well need the "other" app you are trying to use listed in INSTALLED_APPS, but having it there won't have any effect on how the Python interpreter handles import statements, which is the problem you are talking about above. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---