Maintaining content type pk integrity in a Django deployment

Posted by hekevintran on Stack Overflow See other posts from Stack Overflow or by hekevintran
Published on 2010-04-13T18:49:10Z Indexed on 2010/04/13 18:53 UTC
Read the original article Hit count: 365

When you run syncdb in Django, the primary keys of the content types will be recomputed. If I create new models, the next time I run syncdb, the primary keys of the content types will be different.

If I have an application running in production, how can I update the database with the new models and keep the integrity of content type pks?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models