[Answer]-Django: Can I run syncdb on user demand? (to keep model in sync with file system)

1👍

I don’t understand why you want you use syncdb for this. That’s really for creating tables. If all you’re doing is loading a fixture, why don’t you do that directly? You can use django.core.serializers to parse and load your JSON file (and I’d recommend calling it something other than initial_data).

Leave a comment