Django flatpages backup?
问题 I'm using flatpages in a site that I'm developing in a locally server. I need to backup the flatpage's data for use it in the final server. Does anyone know how to do it? 回答1: On your local server run this: python manage.py dumpdata flatpages --indent=2 > backup.json Then copy backup.json to your final server and load it with: python manage.py loaddata backup.json 来源: https://stackoverflow.com/questions/617860/django-flatpages-backup