In my experience, the easiest way is to migrate data in Django is to use 
fixtures.

E.g.
manage.py dumpdata 
http://docs.djangoproject.com/en/1.2/ref/django-admin/#dumpdata-appname-appname-appname-model
and
manage.py loaddata 
http://docs.djangoproject.com/en/1.2/ref/django-admin/#loaddata-fixture-fixture

Christian

From: [email protected] [mailto:[email protected]] On Behalf Of Jude 
Mwenda
Sent: Thursday, March 17, 2011 12:58 PM
To: [email protected]
Subject: Re: [geonode] pysqlite

Any clue on migrating including data from sqlite to postgis?
2011/3/17 Jeff Johnson <[email protected]<mailto:[email protected]>>
It seems like it may be easier to use PostGIS for this? I've never had
much luck with spatialite and GeoDjango, but its been a while since I
have tried, and I think its become easier, but your issue indicates
maybe not?

Jeff

On Thu, Mar 17, 2011 at 4:54 AM, Jude Mwenda 
<[email protected]<mailto:[email protected]>> wrote:
> Hi,
> I would like to use some of geodjango's functions on my intance. On adding
> at the installed apps 'django.contrib.gis' i get the error
> Only versions of pysqlite 2.5+ are compatible with SpatiaLite and GeoDjango.
> Any pointers on how to upgrade pysqlite to 2.5+? or is there an alternative
> to doing geometry functions saved on the sqlite database? such as extent()
> Regards


________________________________
Please be advised that the Massachusetts Secretary of State considers e-mail to 
be a public record, and therefore subject to the Massachusetts Public Records 
Law, M.G.L. c. 66 ? 10.

Reply via email to