[Django]-How to (intentionally) skip an app with Django syncdb

5đź‘Ť

âś…

You can use managed = False in the model’s Meta class. This way, syncdb won’t create the app’s tables. More information on the documentation.

1đź‘Ť

There is a model meta option “managed”, for more info check django documentation:

https://docs.djangoproject.com/en/dev/ref/models/options/#managed

1đź‘Ť

Ok, this is not what your asking directly, but please consider using South http://south.aeracode.org

You can decided which apps to include which version of the model to migrate etc. Sounds like you need a solution here.

Leave a comment