List Info

Thread: Passing Django Model objects between machines




Passing Django Model objects between machines
country flaguser name
United States
2007-04-17 17:26:32
Anyone know, how I can pass Model object from one machine
that runs
Django, to another machine that doesn't have Django, but
uses
python?

Thank you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Passing Django Model objects between machines
user name
2007-04-17 17:39:15
On 4/17/07, johnny <rampetersgmail.com> wrote:
>
> Anyone know, how I can pass Model object from one
machine that runs
> Django, to another machine that doesn't have Django,
but uses
> python?
>
> Thank you.
pickle the object or serialize it to a similarly readable
format.

http://
docs.python.org/lib/module-pickle.html
http://svn.red-bean.com/bob/simplejson
/tags/simplejson-1.3/docs/index.html
http://www.djangoproject.com/documentation/serializatio
n/

~ Anders

>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Passing Django Model objects between machines
country flaguser name
United States
2007-04-17 20:02:22
To do pickling, do you always have to create a file and send
it over
the network to the other machine?  Rather than creating a
pickled
file, can you create string?

Thank you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Passing Django Model objects between machines
country flaguser name
United States
2007-04-17 20:33:37
Following dose it.

pickle.dumps(someObject)
pickle.loads(someObject)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )