Tim,

Others are welcome to disagree, but try to avoid the trap of using JSON 
fixtures to migrate the database.   You can get yourself in trouble pretty 
quickly with foreign key collisions if you are not careful.  Use pg_dump or 
mysqldump instead to backup/move database content.  A good strategy is to do 
content updates on the production site and test/develop against database 
snapshots locally.

Also, when you change the models,  it is worth learning how to use South to do 
schema migration.  
http://south.readthedocs.org/en/latest/tutorial/part1.html 

Brian Schott
[email protected]



On Apr 9, 2013, at 4:37 AM, Tom Evans <[email protected]> wrote:

> On Tue, Apr 9, 2013 at 1:09 AM, Tim Johnson <[email protected]> wrote:
>> FYI - I'm new to django, but have been doing web programming since
>> '96 and python since '03.
>> 
>> I intend to put together a test site on my desktop and push it to a
>> remote server. I will be the only user making changes to this site.
>> 
>> Thus I presume that it is OK to push the database as well.
> 
> Any time you push the database you will wipe any changes that are made
> on the site itself. This includes things like sessions, users, etc. If
> you don't use these things, then sure, push your DB to the site. If
> your site makes any changes to your DB at all, it's probably not safe
> to push it.
> 
> Cheers
> 
> Tom
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to