I believe that you need to use django fixures after "syncdb" and "migrate" 
since you can't do a DB dump and restore from SQlite to Postgres. 
See https://docs.djangoproject.com/en/dev/howto/initial-data/ for more info.

On Monday, April 21, 2014 5:55:37 PM UTC+10, lu zou wrote:
>
> add : i mean , migrate database from sqlite to postgresql with data and 
> structure
>
>
> On Monday, 21 April 2014 17:54:50 UTC+10, lu zou wrote:
>>
>> I have the database locally in SQLlite ,but I need to deploy my project 
>> on the server which using  postgresql , when I migrate data into 
>> PostgreSQL,I use the command "python manage.py syncdb" ,then the database 
>> is overwritten with all the default pages content without using the pages 
>> which I have edited in the project ,How can I migrate my database without 
>> changing anything that I have written into the "dev.db"?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to