I am getting confused by terms, but this is the basic need:

1. In a base dir I have site1 and site2
2. I am in site2 (views) and I want to use the models defined in site1
3. from site1.models import Blah -- seems to work without error.
4. I get an error on stuff like this:
p = Blah.objects.all()
for i in p <--- error here is: "Table 'site2.site1_blah' doesn't exist")

BTW: I have this kind of thing in Apache:
<Location ~ "/site2/?">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE site2.settings
        PythonOption django.root /site2
        PythonDebug On
        PythonInterpreter site2
        PythonPath "['/path/to/base'] + sys.path"
</Location>


How do I set things up so I can use 'foreign' models?

\d

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to