On 1-8-2012 17:27, Àlex Pérez wrote:
> Hello,
> 
> I want to take objects of another project that i don't have installed.
> I can have the contenttype of the external object but I can't take the
> object I understand that, take the object remotly  of a model thah you
> dosen't have have the class is not possible (I think...) but if i want only
> a value i think that could be reasonable...
> 
> I want to tho something like that:
> 
>  c = ContentType.objects.using("site").get(pk=self.ext_content_id)
>  obj = c.get_object_for_this_type(pk=self.ext_object_id).values("nombre")

Rather then fighting the project separation, the easiest solution by far
is to make the data available by webrequest in a format you can read,
like json or XML and use python's httplib to fetch it.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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